list tags on posts page

This commit is contained in:
Joshua Seigler 2025-06-29 16:51:06 -04:00
parent 42ac9ee2b6
commit 19ad68397b
3 changed files with 57 additions and 47 deletions

View file

@ -1,16 +0,0 @@
---
layout: base.njk
title: Tags
permalink: /tags/
---
<main>
<ul class="collection" style="--totalTags:{{ collections.categories | dictsort | length }}">
{%- for tag, data in collections.categories -%}
<li>
<a class="tag" style="--tagIndex:{{ collections.categories[tag].id }}" href="/tags/{{ tag | slugify }}">{{ tag }}</a>
<aside>{{ data.count }}</aside>
</li>
{%- endfor -%}
</ul>
</main>