aboutsummaryrefslogtreecommitdiff
path: root/templates/categories/single.html
blob: 6997db1ab60409dd9c969790b333e55adef6acad (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
{%- extends "base.html" -%}

{%- block seo -%}
  {{- super() -}}
  {%- set title = term.name ~ " category" -%}
  {%- 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 %}
{%- set uglyurls = (config.extra.uglyurls or false) -%}
{%- if config.extra.search_library -%}{%- if config.extra.search_library == "offline" -%}{%- set uglyurls = true -%}{%- endif -%}{%- endif -%}
    <div>
      <h2>{{ term.name }}</h2>
      {%- for year, posts in term.pages | group_by(attribute="year") %}
      <h3 class="tpad">{{ year }}</h3>
      {%- for page in posts %}
      <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 %}