Allow overriding the whole page's body

This commit is contained in:
daudix
2024-09-03 21:55:24 +03:00
parent 134e33839f
commit 0ac11f76a1

View File

@ -11,6 +11,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" {% if lang in rtl_languages %}dir="rtl"{% endif %} lang="{{ lang }}" {% if config.extra.default_theme %}data-theme="{{config.extra.default_theme}}"{% endif %}> <html xmlns="http://www.w3.org/1999/xhtml" {% if lang in rtl_languages %}dir="rtl"{% endif %} lang="{{ lang }}" {% if config.extra.default_theme %}data-theme="{{config.extra.default_theme}}"{% endif %}>
{% include "partials/head.html" %} {% include "partials/head.html" %}
<body> <body>
{% block body %}
{%- if config.extra.nav.links %} {%- if config.extra.nav.links %}
{% include "partials/nav.html" %} {% include "partials/nav.html" %}
{%- endif %} {%- endif %}
@ -19,5 +20,6 @@
{% block content %}{% endblock %} {% block content %}{% endblock %}
</div> </div>
{% include "partials/footer.html" %} {% include "partials/footer.html" %}
{% endblock %}
</body> </body>
</html> </html>