aboutsummaryrefslogtreecommitdiff
path: root/content/templates/tags.html
blob: 9b3a1e251e64c0a38d949a98ec06967454c9d105 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{# The tag index at /tags/. Receives `groups` — every tag with its count — rather than
   `pages`, because it lists tags and not posts.

   Each tag is its own page, so a tag has a URL worth linking to and the index stays
   short. The `id` on each entry keeps older `/tags/#audit` links landing in the right
   place — they scroll to the tag and its link, rather than dumping the reader at the
   top of the index. #}
{% extends "base.html" %}
{% block main %}
<h1>{{ page.title }}</h1>
<p>Browse posts by topic.</p>
<ul class="tag-toc">
{%- for tag in groups %}
<li id="{{ tag.slug }}"><a href="{{ root }}{{ tag.url }}">{{ tag.name }}</a>
<span class="tag-count">({{ tag.count }})</span></li>
{%- endfor %}
</ul>
{% endblock %}