Ajout du support de highlight arbitraire

This commit is contained in:
Kazhnuz 2025-04-14 22:31:59 +02:00
parent 3318162a30
commit 4411528b9d

View file

@ -50,6 +50,10 @@
{%- else -%}
{% if entry.key == eleventyNavigation.parent %}
{% set isActive = true %}
{%- else -%}
{% if entry.key == highlight %}
{% set isActive = true %}
{% endif %}
{% endif %}
{% endif %}
<a href="{{ entry.url }}" {% if isActive %} class="active"{% endif %}>{{ entry.title }}</a>