blob: b9a39726fdf040517d4fd5cf479fc09327c3fafc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{%- extends "base.html" -%}
{%- set uglyurls = (config.extra.uglyurls or false) -%}
{%- if config.extra.search_library -%}{%- if config.extra.search_library == "offline" -%}{%- set uglyurls = true -%}{%- endif -%}{%- endif -%}
{%- block seo -%}
{{- super() -}}
{%- set title = "Categories" -%}
{%- if config.title -%}
{%- set title_addition = title_separator ~ config.title -%}
{%- else -%}
{%- set title_addition = "" -%}
{%- endif -%}
{%- set description = config.description -%}
{{<seo config={config} title={title} title_addition={title_addition} description={description or ""} is_home={true} />}}
{%- endblock seo -%}
{%- block content %}
<div>
<div class="c">
<h1>{{ terms | length }} {{<translate key="Categories" default="Categories" i18n={i18n} />}} </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 class="tpad" id="{{ term.name }}"><a href="{{ term.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ term.name }}</a></h2>
{%- for page in term.pages %}
<p><a href="{{ page.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time></p>
{%- endfor %}
{%- endfor %}
</div>
{%- endblock content %}
|