mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Add "menu" block
This commit is contained in:
parent
21e875d3a5
commit
196a4b1c79
|
@ -89,13 +89,15 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||||
{% set toctree = toctree(maxdepth=2, collapse=False, includehidden=True) %}
|
{% block menu %}
|
||||||
{% if toctree %}
|
{% set toctree = toctree(maxdepth=2, collapse=False, includehidden=True) %}
|
||||||
{{ toctree }}
|
{% if toctree %}
|
||||||
{% else %}
|
{{ toctree }}
|
||||||
<!-- Local TOC -->
|
{% else %}
|
||||||
<div class="local-toc">{{ toc }}</div>
|
<!-- Local TOC -->
|
||||||
{% endif %}
|
<div class="local-toc">{{ toc }}</div>
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user