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,10 +4,12 @@
|
|||||||
<li class="toctree-l1 current"><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat | upper }}</a>
|
<li class="toctree-l1 current"><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat | upper }}</a>
|
||||||
<ul>
|
<ul>
|
||||||
{% for art in articles | sort(attribute="date") %}
|
{% for art in articles | sort(attribute="date") %}
|
||||||
{% if article == art %}
|
{% if "Semaine" not in art.tags%}
|
||||||
<li class="toctree-l2 current"><span>{{ art.title }}</span></li>
|
{% if article == art %}
|
||||||
{% else %}
|
<li class="toctree-l2 current"><span>{{ art.title }}</span></li>
|
||||||
<li class="toctree-l2"><a href="{{ SITEURL }}/{{ art.url }}">{{ art.title }}</a></li>
|
{% else %}
|
||||||
|
<li class="toctree-l2"><a href="{{ SITEURL }}/{{ art.url }}">{{ art.title }}</a></li>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user