2024-04-20 05:41:53 +08:00

16 lines
655 B
Plaintext

{% extends "global/navbar.njk" %}
{% block navbarLinks %}
{% set shrineHomeUrl %}/shrines/cassettebeasts/{% endset %}
{% set navPages = collections.all | eleventyNavigation("Cassette Beasts Shrine") %}
{% set currentUrl %}{{ page.url }}{% endset %}
<li>
<a {% if currentUrl === shrineHomeUrl %}aria-current="page"{% endif %} href="{{ shrineHomeUrl }}">Shrine Home</a>
</li>
{%- for entry in navPages %}
<li>
<a {% if entry.url == page.url %}aria-current="page"{% endif %} href="{{ entry.url }}">{{ entry.title }}</a>
</li>
{%- endfor %}
<li><a href="/">Main Site</a></li>
{% endblock %}