site_opytex/theme/templates/partial/toctree.html

25 lines
834 B
HTML
Raw Permalink Normal View History

<ul class="toctree">
2022-08-28 19:21:02 +00:00
<h2>Niveaux</h2>
2020-06-25 14:10:24 +00:00
{% for cat, articles in categories|sort %}
2020-06-26 08:13:48 +00:00
{% if (article and article.category == cat) or category == cat %}
<li class="toctree-l1 current"><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat | upper }}</a>
2020-06-25 14:10:24 +00:00
<ul>
{% for art in articles | sort(attribute="date") %}
{% if "Semaine" not in art.tags%}
{% if article == art %}
<li class="toctree-l2 current"><span>{{ art.title }}</span></li>
{% else %}
<li class="toctree-l2"><a href="{{ SITEURL }}/{{ art.url }}">{{ art.title }}</a></li>
{% endif %}
{% endif %}
2020-06-25 14:10:24 +00:00
{% endfor %}
</ul>
</li>
{% else %}
2020-06-26 08:13:48 +00:00
<li class="toctree-l1"><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat | upper }}</a>
2020-06-25 14:10:24 +00:00
{% endif %}
{% endfor %}
</ul>