Skip to content

Commit e93295c

Browse files
authored
Templates: Add block for footer content info (#896)
Allows users to expand this area to add their own content
1 parent c27ac29 commit e93295c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

sphinx_rtd_theme/footer.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
<footer>
2-
{% if (theme_prev_next_buttons_location == 'bottom' or theme_prev_next_buttons_location == 'both') and (next or prev) %}
2+
{%- if (theme_prev_next_buttons_location == 'bottom' or theme_prev_next_buttons_location == 'both') and (next or prev) %}
33
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
4-
{% if next %}
4+
{%- if next %}
55
<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>
6-
{% endif %}
7-
{% if prev %}
6+
{%- endif %}
7+
{%- if prev %}
88
<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>
9-
{% endif %}
9+
{%- endif %}
1010
</div>
11-
{% endif %}
11+
{%- endif %}
1212

1313
<hr/>
1414

1515
<div role="contentinfo">
16+
{%- block contentinfo %}
1617
<p>
1718
{%- if show_copyright %}
1819
{%- if hasdoc('copyright') %}
@@ -41,6 +42,7 @@
4142
{%- endif %}
4243

4344
</p>
45+
{%- endblock %}
4446
</div>
4547

4648
{%- if show_sphinx %}
@@ -57,4 +59,3 @@
5759
{%- block extrafooter %} {% endblock %}
5860

5961
</footer>
60-

0 commit comments

Comments
 (0)