feat(posts): Update various post related layouts
All checks were successful
Build and Deploy / build_and_deploy (push) Successful in 1m19s

This commit is contained in:
Devin Haska 2025-09-14 13:49:09 -07:00
parent bcf71238e5
commit 5c03a5be36
Signed by: wonderfulfrog
SSH key fingerprint: SHA256:ejOGyH9064rJiikox4ykOHLeuUg1f9l8wmJxs+MzNw0
10 changed files with 48 additions and 28 deletions

View file

@ -11,15 +11,10 @@ eleventyComputed:
description: Browse all posts tagged with "{{ tag }}".
---
{% from "macros/posts.njk" import yearList %}
{% from "macros/posts.njk" import list %}
<p>
All posts tagged with "{{ tag }}", or go back to <a href="/tags">all tags</a>.
</p>
{% set itemsByYear = collections.postsByTag[tag] | reverse | organizeByYear %}
{% set years = itemsByYear | keys | sort("desc") %}
<section class="flow">
{% for year in years %}
{% set itemsInYear = itemsByYear[year] %}
{{ yearList(itemsInYear, year) }}
{% endfor %}
{{ list(collections.postsByTag[tag] | reverse) }}
</section>