summaryrefslogtreecommitdiff
path: root/zola/templates/section.html
blob: 71d3e06854f6cf6585a9d70087a99a0b1d535c13 (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
31
32
33
34
{% 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 %} &gt; {% endif %}<a href="{{ s.path | safe }}">{{ s.title }}</a>
        {% endfor %}
        &gt; <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><em><date datetime="{{ page.date }}">{{ page.date }}</date></em>: {{ page.description }}</p>
        <p>
        {% for kind, values in page.taxonomies %}
                {% set cat = get_taxonomy(kind=kind) -%}
                <a href="{{ cat.permalink | safe }}">{{ kind }}</a>:
                {% for v in values %}
                        {% if loop.index != 1%}, {% endif %}<a href="{{ get_taxonomy_url(kind=kind, name=v) | safe }}">{{ v }}</a>
                {% endfor %}
                <br/>
        {% endfor %}
        </p>
</dd>
{% endfor %}
</dl>
{% endblock %}