aboutsummaryrefslogtreecommitdiff
path: root/templates/categories/list.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/categories/list.html')
-rw-r--r--templates/categories/list.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/categories/list.html b/templates/categories/list.html
index 1ded228..2e325c9 100644
--- a/templates/categories/list.html
+++ b/templates/categories/list.html
@@ -18,13 +18,13 @@
{%- block content %}
<div>
<div class="c">
- <h1>{{ terms | length }} Categories</h1>
- <p>{% for term in terms %} [<a href="#{{ term.name }}">{{ term.name }}</a>] {% endfor %}</p>
+ <h1>{{ terms | length }} {%- if lang != config.default_language %} {{ trans(key="Categories" | safe, lang=lang) }} {% else %} Categories {% endif %}</h1>
+ <p>{% for term in terms %} [<a href="#{{ term.name }}">{{ term.name }}</a>]<sup>{{ term.pages | length }}</sup> {% endfor %}</p>
</div>
{%- for term in terms %}
- <h2 id="{{ term.name }}"><a href="{{ term.permalink | safe }}">{{ term.name }}</a></h2>
+ <h2 id="{{ term.name }}"><a href="{{ term.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ term.name }}</a></h2>
{%- for page in term.pages %}
- <p><a href="{{ page.permalink | safe }}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time></p>
+ <p><a href="{{ page.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time></p>
{%- endfor %}
{%- endfor %}
</div>