aboutsummaryrefslogtreecommitdiff
path: root/templates/categories
diff options
context:
space:
mode:
Diffstat (limited to 'templates/categories')
-rw-r--r--templates/categories/list.html26
-rw-r--r--templates/categories/single.html20
2 files changed, 23 insertions, 23 deletions
diff --git a/templates/categories/list.html b/templates/categories/list.html
index bce31fa..485d54d 100644
--- a/templates/categories/list.html
+++ b/templates/categories/list.html
@@ -1,16 +1,16 @@
{% extends "base.html" %}
-{% block content %}
-<div>
- <center>
- <h1>{{ terms | length }} Categories</h1>
- <p>{% for term in terms -%}[<a href="#{{ term.name }}">{{ term.name }}</a>] &nbsp; {%- endfor %}</p>
- </center>
- {% for term in terms -%}
- <h2 id="{{ term.name }}"><a href="{{ term.permalink | safe }}">{{ term.name }}</a></h2>
- {% for page in term.pages -%}
+{%- block content %}
+ <div>
+ <center>
+ <h1>{{ terms | length }} Categories</h1>
+ <p>{%- for term in terms %}[<a href="#{{ term.name }}">{{ term.name }}</a>] &nbsp; {%- endfor %}</p>
+ </center>
+ {%- for term in terms %}
+ <h2 id="{{ term.name }}"><a href="{{ term.permalink | safe }}">{{ 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=config.extra.timeformat | default(value="%B %e, %Y")) }}</time></p>
- {% endfor -%}
- {% endfor -%}
-</div>
-{% endblock content %}
+ {%- endfor %}
+ {%- endfor %}
+ </div>
+{%- endblock content %}
diff --git a/templates/categories/single.html b/templates/categories/single.html
index 641add7..0fe639d 100644
--- a/templates/categories/single.html
+++ b/templates/categories/single.html
@@ -1,13 +1,13 @@
{% extends "base.html" %}
-{% block content %}
-<div>
- <h2>{{ term.name }}</h2>
- {% for year, posts in term.pages | group_by(attribute="year") %}
- <h3>{{ year }}</h3>
- {% for page in posts %}
+{%- block content %}
+ <div>
+ <h2>{{ term.name }}</h2>
+ {%- for year, posts in term.pages | group_by(attribute="year") %}
+ <h3>{{ year }}</h3>
+ {%- for page in posts %}
<p><a href="{{ page.permalink | safe }}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format=config.extra.timeformat | default(value="%B %e, %Y")) }}</time></p>
- {% endfor %}
- {% endfor %}
-</div>
-{% endblock content %}
+ {%- endfor %}
+ {%- endfor %}
+ </div>
+{%- endblock content %}