docs/templates/page.html (851B)
1 {% extends "base.html" %}
2
3 {% block content %}
4 <div class="prose">
5 {{ page.content | safe }}
6 </div>
7
8 {#- Where to go when the page ends. Only within this section: a reader who
9 finishes the last page of one part has finished that part, and sending them
10 across the boundary into an unrelated one pretends the sections are a single
11 ordered book. #}
12 {%- if page.prev or page.next %}
13 <nav class="pager" aria-label="{{ t("pagination") }}">
14 {%- if page.prev %}
15 <a class="pager-prev" href="{{ page.prev.url }}" rel="prev">
16 <span>{{ t("previous") }}</span>
17 <strong>{{ page.prev.title }}</strong>
18 </a>
19 {%- endif %}
20 {%- if page.next %}
21 <a class="pager-next" href="{{ page.next.url }}" rel="next">
22 <span>{{ t("next") }}</span>
23 <strong>{{ page.next.title }}</strong>
24 </a>
25 {%- endif %}
26 </nav>
27 {%- endif %}
28 {% endblock %}