aboutsummaryrefslogtreecommitdiffstats
path: root/templates/section.html
blob: cd509fa203fae27b1a23e263ab5a8bc43fdfc4b2 (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
28
{% extends "base.html" %}

{% block header %}
<p><a href="{{ section.path }}..">..</a>{{ section.path }}</p>

<h1>{{ section.title }}</h1>
{% endblock header %}

{% block content %}
{{ section.content | safe }}
{% if paginator %}
{% set pages = paginator.pages %}
{% else %}
{% set pages = section.pages %}
{% endif %}
<ul>
{% for page in pages %}
    <li>
        <a href="{{ page.permalink | safe }}">{{ page.date }} - {{ page.title }}</a>
        <br />
        {{ page.description }}
    </li>
{% endfor %}
</ul>
{% if paginator %}
<p>{% if paginator.previous %}<a href="{{ paginator.first }}">&lt;&lt; First</a> <a href="{{ paginator.previous }}">&lt; Previous</a>{% endif %} [{{ paginator.current_index }}/{{ paginator.number_pagers }}] {% if paginator.next %}<a href="{{ paginator.next }}">Next &gt;</a> <a href="{{ paginator.last }}">Last &gt;&gt;</a>{% endif %}</p>
{% endif %}
{% endblock content %}