Skip to content

Commit 78f0d79

Browse files
committed
nav in body
1 parent 22b3053 commit 78f0d79

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

themes/mongodb/layout.html

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,21 @@
114114
</div>
115115
</div>
116116
{%- endmacro %}
117-
117+
{%- macro render_nextprev() %}
118+
<div id="btnv">
119+
<ul id="btnvl">
120+
{%- if prev %}
121+
<li id="btnvpr"><a href="{{ prev.link|e }}" title="Previous Section: {{ prev.title|striptags|e }}">&lt; &nbsp; {{ prev.title|striptags|e }}</a></li>
122+
{%- endif %}
123+
{%- if parents %}
124+
<li id="btnvup"><a href="{{ parents[0].link|e }}" title="Parent Section: {{ parents[0].title|striptags|e }}" >&#47;&#92;&nbsp; {{ parents[0].title|striptags|e }}</a></li>
125+
{%- endif %}
126+
{%- if next %}
127+
<li id="btnvnx"><a href="{{ next.link|e }}" title="Next Section: {{ next.title|striptags|e }}">{{ next.title|striptags|e }} &nbsp;&gt;</a></li>
128+
{%- endif %}
129+
</ul>
130+
</div>
131+
{% endmacro -%}
118132
<html xmlns="http://www.w3.org/1999/xhtml">
119133
<head>
120134
{%- block htmltitle %}
@@ -207,6 +221,7 @@
207221
<div class="body">
208222
<div id="cse-results"><gcse:searchresults></gcse:searchresults></div>
209223
{% block body %} {% endblock %}
224+
{{- render_nextprev() -}}
210225
</div>
211226
{%- if render_sidebar %}
212227
</div>

0 commit comments

Comments
 (0)