feat: update all post filenames
This commit is contained in:
parent
169858c05a
commit
48b8a5e10e
53 changed files with 22 additions and 96 deletions
14
src/tag.html
14
src/tag.html
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue