Commit 702e0601 by Sébastien Eustace

Fix documentation template

parent 8bd83dda
{%- if nav_item.url %} {%- if nav_item.url %}
<a class="{% if nav_item.active%}current{%endif%}" href="{{ nav_item.url }}">{{ nav_item.title }}</a> <a class="{% if nav_item.active%}current{%endif%}" href="{{ base_url }}/{{ nav_item.url }}">{{ nav_item.title }}</a>
{%- else %} {%- else %}
<span class="caption-text">{{ nav_item.title }}</span> <span class="caption-text">{{ nav_item.title }}</span>
{%- endif %} {%- endif %}
{%- if nav_item == page or nav_item.children %} {%- if nav_item == page or nav_item.children %}
<ul class="subnav"> <ul class="subnav">
{%- if nav_item == page %} {%- if nav_item == page %}
{% include 'toc.html' %} {% include 'toc.html' %}
{%- endif %} {%- endif %}
...@@ -18,5 +18,5 @@ ...@@ -18,5 +18,5 @@
{%- endfor %} {%- endfor %}
{%- set navlevel = navlevel - 1%} {%- set navlevel = navlevel - 1%}
{%- endif %} {%- endif %}
</ul> </ul>
{%- endif %} {%- endif %}
{% for toc_item in page.toc %} {% for toc_item in page.toc %}
<!--<li class="toctree-l{{ navlevel + 1 }}"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>--> <!--<li class="toctree-l{{ navlevel + 1 }}"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>-->
{% if toc_item.children %} {% if toc_item.children %}
<ul> <ul>
{% for toc_item in toc_item.children %} {% for toc_item in toc_item.children %}
<li><a class="toctree-l{{ navlevel + 2 }}" href="{{ toc_item.url }}">{{ toc_item.title }}</a></li> <li><a class="toctree-l{{ navlevel + 2 }}" href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment