diff options
Diffstat (limited to 'zola/templates/section.html')
-rw-r--r-- | zola/templates/section.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/zola/templates/section.html b/zola/templates/section.html new file mode 100644 index 0000000..11e7e6a --- /dev/null +++ b/zola/templates/section.html @@ -0,0 +1,24 @@ +{% extends "base.html" %} + +{% block title %}{{ section.title }}{% endblock %} +{% block header %}{{ section.title }}{% endblock %} +{% block navigation %} + {% for a in section.ancestors %} + {% set s = get_section(path=a) %} + {% if loop.index != 1 %} > {% endif %}<a href="{{ s.path | safe }}">{{ s.title }}</a> + {% endfor %} + > <a href="{{ section.path | safe }}">{{ section.title }}</a> +{% endblock %} +{% block content %} +<dl title="List of {{ section.title }} entries"> +{% for page in section.pages %} +<dt> + <p><a href="{{ page.path | safe}}">{{ page.title }}</a></p> +</dt> +<dd> + <p>{{ page.description }} <em><date datetime="{{ page.updated }}">{{ page.updated }}</date></em></p> +</dd> +{% endfor %} +</dl> +{% endblock %} + |