list tags on posts page
This commit is contained in:
parent
42ac9ee2b6
commit
19ad68397b
3 changed files with 57 additions and 47 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue