✨ Ajout du support de highlight arbitraire
This commit is contained in:
parent
3318162a30
commit
4411528b9d
1 changed files with 4 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue