Feat: filter article in pagetree.
All checks were successful
continuous-integration/drone/push Build is passing
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:
parent
12d10e6ace
commit
6060a52717
@ -4,11 +4,13 @@
|
||||
<li class="toctree-l1 current"><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat | upper }}</a>
|
||||
<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 %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
|
Loading…
Reference in New Issue
Block a user