-
Index
- {% for h in toc %}
-
- {% if h.children %}
- {% for h2 in h.children %}
-
- {% endfor %}
- {% endif %}
- {% endfor %}
+ {%- block page_footer %}
+ {{- macros::footer(page=page) }}
+ {%- endblock page_footer %}
+
+ {%- block toc %}
+ {%- if page.extra.toc %}
+ {%- set toc = page.toc %}
+ {%- endif %}
+ {%- if toc %}
+
+
+
Index
+ {%- for h in toc %}
+
+ {%- if h.children %}
+ {%- for h2 in h.children %}
+
+ {%- endfor %}
+ {%- endif %}
+ {%- endfor %}
- {% endif %}
- {% endblock toc %}
-{% endblock content %}
+
+ {%- endif %}
+ {%- endblock toc %}
+{%- endblock content %}
diff --git a/templates/pages.html b/templates/pages.html
index 3d2ca80..a9147c7 100644
--- a/templates/pages.html
+++ b/templates/pages.html
@@ -1,4 +1,6 @@
{% extends "base.html" %}
-{% block content %}
-
{{ page.content | safe }}
-{% endblock content %}
+{%- block content %}
+
+ {{ page.content | safe }}
+
+{%- endblock content %}
diff --git a/templates/posts.html b/templates/posts.html
index f093e8e..3d4184d 100644
--- a/templates/posts.html
+++ b/templates/posts.html
@@ -1,12 +1,12 @@
{% extends "base.html" %}
-{% block content %}
- {% set section_item = get_section(path="_index.md") %}
-
- {% for year, posts in section_item.pages | group_by(attribute="year") %}
+{%- block content %}
+{%- set section_item = get_section(path="_index.md") %}
+
+ {%- for year, posts in section_item.pages | group_by(attribute="year") %}
{{ year }}
- {% for post in posts %}
-
{{ post.title }} - {{ post.date | date(format="%F") }}
- {% endfor %}
- {% endfor %}
-
-{% endblock content %}
+ {%- for post in posts %}
+
{{ post.title }} - {{ post.date | date(format="%F") }}
+ {%- endfor %}
+ {%- endfor %}
+
+{%- endblock content %}
diff --git a/templates/tags/list.html b/templates/tags/list.html
index 56575df..2dd3497 100644
--- a/templates/tags/list.html
+++ b/templates/tags/list.html
@@ -1,16 +1,16 @@
{% extends "base.html" %}
-{% block content %}
-
-
- {{ terms | length }} Tags
- {% for term in terms -%}#{{ term.name }} {%- endfor %}
-
- {% for term in terms -%}
+{%- block content %}
+
+
+ {{ terms | length }} Tags
+ {%- for term in terms %}#{{ term.name }} {%- endfor %}
+
+ {%- for term in terms %}
- {% for page in term.pages -%}
-
{{ page.title }} -
- {% endfor -%}
- {% endfor -%}
-
-{% endblock content %}
+ {%- for page in term.pages %}
+
{{ page.title }} -
+ {%- endfor %}
+ {%- endfor %}
+
+{%- endblock content %}
diff --git a/templates/tags/single.html b/templates/tags/single.html
index 2bddb8e..d9d03eb 100644
--- a/templates/tags/single.html
+++ b/templates/tags/single.html
@@ -1,13 +1,13 @@
{% extends "base.html" %}
-{% block content %}
-
-
{{ term.name }}
- {% for year, posts in term.pages | group_by(attribute="year") %}
+{%- block content %}
+
+
{{ term.name }}
+ {%- for year, posts in term.pages | group_by(attribute="year") %}
{{ year }}
- {% for page in term.pages %}
-
{{ page.title }} -
- {% endfor %}
- {% endfor %}
-
-{% endblock content %}
+ {%- for page in term.pages %}
+
{{ page.title }} -
+ {%- endfor %}
+ {%- endfor %}
+
+{%- endblock content %}
--
cgit v1.3.1