2025-04-02 01:03:14 +08:00

12 lines
358 B
Plaintext

{% extends "global/navbar.njk" %}
{% block navbarLinks %}
{% set currentUrl %}{{ page.url }}{% endset %}
{% set navPages = collections["navbar links"] | eleventyNavigation %}
{%- for entry in navPages %}
<li>
<a {% if entry.url == page.url %}aria-current="page"{% endif %} href="{{ entry.url }}">{{ entry.title }}</a>
</li>
{%- endfor %}
{% endblock %}