Skip to content

Commit

Permalink
Templates: Add block for footer content info (#896)
Browse files Browse the repository at this point in the history
Allows users to expand this area to add their own content
  • Loading branch information
Blendify committed Dec 3, 2020
1 parent c27ac29 commit e93295c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions sphinx_rtd_theme/footer.html
@@ -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') %}
Expand Down Expand Up @@ -41,6 +42,7 @@
{%- endif %}

</p>
{%- endblock %}
</div>

{%- if show_sphinx %}
Expand All @@ -57,4 +59,3 @@
{%- block extrafooter %} {% endblock %}

</footer>

0 comments on commit e93295c

Please sign in to comment.