Skip to content

Override footer #248

Closed Answered by FernandoBasso
FernandoBasso asked this question in Questions
Sep 14, 2021 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

Thanks for the reply. I think I am still doing something wrong.

$ cat docs/_templates/layout.html 
{% extends "layout.html" %}

{% block footer %}
<footer>
My Custom Footer
</footer>
{% endblock %}

$ grep templates_path docs/conf.py 
templates_path = ['_templates']

I also tried changing {% extends "layout.html" %} with {% extends "furo/layout.html" %} and also prefixing it with the exclamation mark "!". No errors, nothing changes.

Sphinx documentation says:

When extending a template in the base theme with the same name, use the theme name as an explicit directory: {% extends "basic/layout.html" %}. From a user templates_path template, you can still use the “exclamation mark” syntax as …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@pradyunsg
Comment options

@FernandoBasso
Comment options

@pradyunsg
Comment options

@FernandoBasso
Comment options

Answer selected by pradyunsg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants