blob: 6dc8b46ba7343f93e4245634819100f60777464e (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{%- macro rellink_markup() %}
<nav id="rellinks">
<ul>
{%- if prev %}
<li>
←
<a href="{{ prev.link|e }}" title="Previous document">{{ prev.title }}</a>
</li>
{%- endif %}
{%- if next %}
<li>
<a href="{{ next.link|e }}" title="Next document">{{ next.title }}</a>
→
</li>
{%- endif %}
</ul>
</nav>
{%- endmacro %}
{%- macro breadcrumbs_markup() %}
<nav id="breadcrumbs">
<ul>
{%- block rootrellink %}
<li><a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a></li>
{%- endblock %}
{%- for parent in parents %}
<li>
<a href="{{ parent.link|e }}">{{ parent.title }}</a>
</li>
{%- endfor %}
{%- block relbaritems %} {% endblock %}
</ul>
</nav>
{%- endmacro %}
{%- macro relbar_top() %}
{%- if theme_showrelbartop|tobool %}
<div class="related top">
{{- rellink_markup () }}
{{- breadcrumbs_markup() }}
</div>
{%- endif %}
{%- endmacro %}
{%- macro relbar_bottom() %}
{%- if theme_showrelbarbottom|tobool %}
<div class="related bottom">
{{- rellink_markup () }}
{{- breadcrumbs_markup() }}
</div>
{%- endif %}
{%- endmacro %}
|