feat: reorg pages

This commit is contained in:
Devin Haska 2024-03-22 16:40:28 -07:00
parent 0e3ef370c7
commit 593f20560d
16 changed files with 8 additions and 24 deletions

16
src/pages/catalogue.html Normal file
View file

@ -0,0 +1,16 @@
---
title: Catalogue
---
{% from "macros/catalogue.njk" import yearList %}
<h1>Catalogue</h1>
<p>A collection of my thoughts on various forms of media that I consume.</p>
{% include "partials/catalogue-types.html" %}
{% set itemsByYear = collections.catalogue | reverse | organizeByDate %}
{% set years = itemsByYear | keys | sort("desc") %}
<section class="[ flow ]">
{% for year in years %}
{% set itemsInYear = itemsByYear[year] %}
{{ yearList(itemsInYear, year) }}
{% endfor %}
</section>