docs: Let the sidebar move

This means the nice navigation to other chapters always stays on
screen, instead of scrolling away.
This commit is contained in:
Fabian Homborg
2021-05-27 22:02:48 +02:00
parent 0e771590e6
commit 21cb791557
2 changed files with 28 additions and 3 deletions

View File

@@ -37,7 +37,8 @@
{%- endif %}
{% endblock %}
{% block sidebar1 %}{{ sidebar() }}{% endblock %}
{# The sidebar goes into the *document* block, so it ends up in the document *div* so it doesn't go over the footer #}
{% block document %}{{ sidebar() }}{{ super() }}{% endblock %}
{% block sidebar2 %} {% endblock %}
{% block extrahead %}
<link rel="shortcut icon" type="image/png" href="{{ pathto('_static/' + theme_root_icon, 1) }}" />