Skip to content

Commit b1856ae

Browse files
author
Ed Costello
committed
DOCS-701 create next/prev links at bottom of pages
1 parent 183c0a8 commit b1856ae

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

themes/mongodb/layout.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@
100100
<div id="btnv">
101101
<ul id="btnvl">
102102
{%- if prev %}
103-
<li><a href="{{ prev.link|e }}">{{ prev.title|striptags|e }}</a>&nbsp;&lt;</li>
103+
<li id="btnvpr"><a href="{{ prev.link|e }}" title="Previous Section: {{ prev.title|striptags|e }}">&larr; {{ prev.title|striptags|e }}</a></li>
104104
{%- endif %}
105105
{%- if parents %}
106-
<li><a href="{{ parents[0].link|e }}">{{ parents[0].title|striptags|e }}</a></li>
106+
<li id="btnvup"><a href="{{ parents[0].link|e }}" title="Parent Section: {{ parents[0].title|striptags|e }}" >&uarr; {{ parents[0].title|striptags|e }}</a></li>
107107
{%- endif %}
108108
{%- if next %}
109-
<li>&nbsp;&gt; <a href="{{ next.link|e }}">{{ next.title|striptags|e }}</a></li>
109+
<li id="btnvnx"><a href="{{ next.link|e }}" title="Next Section: {{ next.title|striptags|e }}">{{ next.title|striptags|e }} &rarr;</a></li>
110110
{%- endif %}
111111
</ul>
112112
</div>

themes/mongodb/static/mongodb-docs.css_t

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,3 +738,11 @@ div.admonition p {line-height:1.6875}
738738
dd > div.admonition {margin-left:0;}
739739
p > div.admonition {margin-left:0;}
740740
li > div.admonition {margin-left:0;}
741+
742+
div#btnv {padding-top:3em}
743+
div#btnv ul#btnvl {display:block;width:66%;text-align:center;}
744+
div#btnv ul#btnvl li {display:inline;list-item-style:none;font-size:10pt;padding:1em; width:33%}
745+
div#btnv ul#btnvl li#btnvup:before,
746+
div#btnv ul#btnvl li#btnvnx:before {content:" ";padding-left:1em;padding-right:1em;color:#c48c55}
747+
748+

0 commit comments

Comments
 (0)