summaryrefslogtreecommitdiff
path: root/zola/templates/page.html
blob: c0fded370dae73706ad452bf3f31d71c446abad0 (plain) (blame)
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
{% extends "base.html" %}

{% block title %}{{ page.title }}{% endblock %}
{% block header %}{{ page.title }}{% endblock %}
{% block navigation %}
        {% for a in page.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="{{ page.path | safe }}">{{ page.title }}</a>
{% endblock %}
{% block content %}
<article title="{{ page.title }}">
        <em>Created:</em> {{ page.date }}<br/>
        {% if page.updated %}<em>Updated:</em> {{ page.updated }}<br/> {% endif %}
        {% 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 %}
                </dd>
        {% endfor %}<br/>
        {{ page.content | safe }}
</article>
{% endblock %}