mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #2925 from shibukawa/fix/remove-epub-header-footer
remove header and footer from resulting epub
This commit is contained in:
commit
8fa2e337a6
@ -15,14 +15,7 @@
|
||||
{# add only basic navigation links #}
|
||||
{% block sidebar1 %}{% endblock %}
|
||||
{% block sidebar2 %}{% endblock %}
|
||||
{% block relbar1 %}{% endblock %}
|
||||
{% block relbar2 %}{% endblock %}
|
||||
{% block linktags %}{% endblock %}
|
||||
|
||||
{# redefine relbar1 and footer to only call super if options are true #}
|
||||
{%- block relbar1 %}
|
||||
{% if theme_relbar1|tobool %}{{ super() }}{% endif %}
|
||||
{%- endblock %}
|
||||
{%- block footer %}
|
||||
{% if theme_footer|tobool %}{{ super() }}{% endif %}
|
||||
{%- endblock %}
|
||||
|
||||
{% block footer %}{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user