Feat: filter article in pagetree.
All checks were successful
continuous-integration/drone/push Build is passing

If "Semaine" in tags, it does not show up
This commit is contained in:
Bertrand Benjamin 2020-12-05 06:51:39 +01:00
parent 12d10e6ace
commit 6060a52717

View File

@ -4,10 +4,12 @@
<li class="toctree-l1 current"><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat | upper }}</a>
<ul>
{% for art in articles | sort(attribute="date") %}
{% 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>
{% 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 %}
{% endfor %}
</ul>