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>
|
<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 "Semaine" not in art.tags%}
|
||||||
{% if article == art %}
|
{% if article == art %}
|
||||||
<li class="toctree-l2 current"><span>{{ art.title }}</span></li>
|
<li class="toctree-l2 current"><span>{{ art.title }}</span></li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li class="toctree-l2"><a href="{{ SITEURL }}/{{ art.url }}">{{ art.title }}</a></li>
|
<li class="toctree-l2"><a href="{{ SITEURL }}/{{ art.url }}">{{ art.title }}</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user