feat: update all post filenames

This commit is contained in:
Devin Haska 2024-02-26 16:28:23 -08:00
parent 169858c05a
commit 48b8a5e10e
53 changed files with 22 additions and 96 deletions

View file

@ -9,9 +9,19 @@ pagination:
permalink: /tags/{{ tag | slugify }}/index.html
---
{% from "macros/posts.njk" import list %}
<h1>Tag: {{ tag }}</h1>
<p>
All posts tagged with "{{ tag }}", or go back to <a href="/tags">all tags</a>.
</p>
{% set items = collections.postsByTag[ tag ] %}
{% include "partials/archive.html" %}
{% set itemsByYear = collections.postsByTag[tag] | reverse | organizeByDate %}
{% set years = itemsByYear | keys | sort("desc") %}
<section class="[ flow ]">
{% for year in years %}
{% set itemsInYear = itemsByYear[year] %}
<h2>{{ year }}</h2>
<section>
{{ list(itemsInYear) }}
</section>
{% endfor %}
</section>