feat: various style improvements to catalogue

This commit is contained in:
Devin Haska 2024-02-17 18:10:32 -08:00
parent fbf6bb2976
commit 1ffc6d1ede
13 changed files with 77 additions and 17 deletions

View file

@ -3,7 +3,7 @@
<section class="[ archive ]">
{% for year in years %}
{% set itemsInYear = itemsByYear[year] %}
<div class="[ flex mt-1.5 mb-0.5 ]">
<div class="[ flex mt-2 mb-0.5 ]">
<h2>{{ year }}</h2>
</div>
<div class="[ items ] [ flex-col gap-0.25 ]">

View file

@ -3,16 +3,16 @@
<section class="[ archive ]">
{% for year in years %}
{% set itemsInYear = itemsByYear[year] %}
<div class="[ flex mt-1.5 mb-0.5 ]">
<div class="[ flex mt-2 mb-0.5 ]">
<h2>{{ year }}</h2>
</div>
<div class="[ items ] [ flex-col gap-0.25 ]">
{% for item in itemsInYear %}
{% set type = item.data.tags[1] %}
<div class="[ flex items-center justify-between ]">
<div class="[ flex items-center justify-between gap-0.5 ]">
<a href="{{ item.url }}">{{ item.data.title }}</a>
<hr class="[ archive-divider ] [ mx-0.5 ]" />
<p class="[ px-0.5 ]">{{ type }}</p>
<hr class="[ archive-divider ]" />
<p class="[ catalogue-type ] [ px-0.5 bg-surface text-primary ]">{{ type }}</p>
<p class="[ archive-date ]">{{ item.date | formatDate("MM/DD") }}</p>
</div>
{% endfor %}