By: Amelia Saiko
Footer¶
Footer is the block located under the bottom of
page’s main content. It is displayed on every
page and it’s default contents are set in the
theme/footer.html file of this theme’s
package:
1{%- if show_copyright %}
2 {{- copyright_block() -}}
3{%- endif %}
4{%- if last_updated %}
5 {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
6{%- endif %}
7{%- if show_sphinx %}
8 {% trans sphinx_version=sphinx_version|e %}Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
9{%- endif %}
Changing footer¶
You can change footer contents by overriding
the footer.html template by creating a file
with this name inside your _templates dir,
if it exists and is registered in conf.py:
conf.py¶
templates_path = ['_templates']