feat: clean up filters

Some sorely needed reorganization and pruning
This commit is contained in:
Devin Haska 2025-04-04 13:50:46 -07:00
parent e6cfa88f61
commit ea6280226a
11 changed files with 159 additions and 176 deletions

View file

@ -8,7 +8,7 @@ description: Read all of my posts.
<p>
Browse all of my posts, or narrow things down <a href="/tags">via tags</a>.
</p>
{% set itemsByYear = collections.post | reverse | organizeByDate %}
{% set itemsByYear = collections.post | reverse | organizeByYear %}
{% set years = itemsByYear | keys | sort("desc") %}
<section class="flow">
{% for year in years %}

View file

@ -15,7 +15,7 @@ eleventyComputed:
<p>
All posts tagged with "{{ tag }}", or go back to <a href="/tags">all tags</a>.
</p>
{% set itemsByYear = collections.postsByTag[tag] | reverse | organizeByDate %}
{% set itemsByYear = collections.postsByTag[tag] | reverse | organizeByYear %}
{% set years = itemsByYear | keys | sort("desc") %}
<section class="flow">
{% for year in years %}