Skip to content

Commit 3b504d2

Browse files
authored
Merge pull request #10475 from AKKamath/master
Add navigation buttons before user-contributed notes on all pages.
2 parents 63b330d + f6879c1 commit 3b504d2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

_templates/layout.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@
5252

5353
{% if (not meta or meta.get('allow_comments') != 'False') and godot_show_article_comments %}
5454
<div id="godot-giscus">
55+
{%- if (theme_prev_next_buttons_location == 'bottom' or theme_prev_next_buttons_location == 'both') and (next or prev) %}
56+
<div class="rst-footer-buttons" role="navigation">
57+
{%- if prev %}
58+
<a href="{{ prev.link|e }}" class="btn btn-neutral float-left" title="{{ prev.title|striptags|e }}" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> {{ _('Previous') }}</a>
59+
{%- endif %}
60+
{%- if next %}
61+
<a href="{{ next.link|e }}" class="btn btn-neutral float-right" title="{{ next.title|striptags|e }}" accesskey="n" rel="next">{{ _('Next') }} <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
62+
{%- endif %}
63+
</div>
64+
{%- endif %}
5565
<hr>
5666
<h2>User-contributed notes</h2>
5767
<p>

0 commit comments

Comments
 (0)