feat(posts): Update various post related layouts
All checks were successful
Build and Deploy / build_and_deploy (push) Successful in 1m19s
All checks were successful
Build and Deploy / build_and_deploy (push) Successful in 1m19s
This commit is contained in:
parent
bcf71238e5
commit
5c03a5be36
10 changed files with 48 additions and 28 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue