Templates: Add block for footer content info (#896)

Allows users to expand this area to add their own content
This commit is contained in:
Aaron Carlisle
2020-12-03 18:39:12 -05:00
committed by GitHub
parent c27ac2944b
commit e93295cb92

View File

@@ -1,18 +1,19 @@
<footer>
{% if (theme_prev_next_buttons_location == 'bottom' or theme_prev_next_buttons_location == 'both') and (next or prev) %}
{%- if (theme_prev_next_buttons_location == 'bottom' or theme_prev_next_buttons_location == 'both') and (next or prev) %}
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
{% if next %}
{%- if next %}
<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>
{% endif %}
{% if prev %}
{%- endif %}
{%- if prev %}
<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>
{% endif %}
{%- endif %}
</div>
{% endif %}
{%- endif %}
<hr/>
<div role="contentinfo">
{%- block contentinfo %}
<p>
{%- if show_copyright %}
{%- if hasdoc('copyright') %}
@@ -41,6 +42,7 @@
{%- endif %}
</p>
{%- endblock %}
</div>
{%- if show_sphinx %}
@@ -57,4 +59,3 @@
{%- block extrafooter %} {% endblock %}
</footer>