Iterate A Summer's End shrine pages
This commit is contained in:
parent
6bd4b3f229
commit
69c32a8a5b
|
@ -1,9 +1,15 @@
|
||||||
{% extends "global/navbar.njk" %}
|
{% extends "global/navbar.njk" %}
|
||||||
|
|
||||||
{% block navbarLinks %}
|
{% block navbarLinks %}
|
||||||
<li><a href="/shrines/asummersend/">Shrine Home</a></li>
|
{% set shrineHomeUrl %}/shrines/asummersend/{% endset %}
|
||||||
<li><a href="/shrines/asummersend/playlists">Playlists</a></li>
|
{% set currentUrl %}{{ page.url }}{% endset %}
|
||||||
<li><a href="/shrines/asummersend/trivia">Trivia</a></li>
|
<li>
|
||||||
<li><a href="/shrines/asummersend/gallery">Gallery</a></li>
|
<a {% if currentUrl === shrineHomeUrl %}aria-current="page"{% endif %} href="{{ shrineHomeUrl }}">Shrine Home</a>
|
||||||
|
</li>
|
||||||
|
{% for page in collections["a summers end shrine page"] %}
|
||||||
|
<li>
|
||||||
|
<a {% if currentUrl === page.url %}aria-current="page"{% endif %} href="{{ page.url }}">{{ page.data.title }}</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
<li><a href="/">Main Site</a></li>
|
<li><a href="/">Main Site</a></li>
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue