Set A Summer's End shrine navigation
This commit is contained in:
parent
a46b2012fd
commit
89f86d4565
|
@ -2,14 +2,15 @@
|
|||
|
||||
{% block navbarLinks %}
|
||||
{% set shrineHomeUrl %}/shrines/asummersend/{% endset %}
|
||||
{% set navPages = collections.all | eleventyNavigation("A Summer's End Shrine") %}
|
||||
{% set currentUrl %}{{ page.url }}{% endset %}
|
||||
<li>
|
||||
<a {% if currentUrl === shrineHomeUrl %}aria-current="page"{% endif %} href="{{ shrineHomeUrl }}">Shrine Home</a>
|
||||
</li>
|
||||
{% for page in collections["a summers end shrine page"] %}
|
||||
{%- for entry in navPages %}
|
||||
<li>
|
||||
<a {% if currentUrl === page.url %}aria-current="page"{% endif %} href="{{ page.url }}">{{ page.data.title }}</a>
|
||||
<a {% if entry.url == page.url %}aria-current="page"{% endif %} href="{{ entry.url }}">{{ entry.title }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{%- endfor %}
|
||||
<li><a href="/">Main Site</a></li>
|
||||
{% endblock %}
|
|
@ -5,8 +5,9 @@ title: A Summer's End — Hong Kong 1986 Shrine
|
|||
desc: My shrine for A Summer's End — Hong Kong 1986
|
||||
isContentDivided: true
|
||||
eleventyNavigation:
|
||||
key: A Summer's End — Hong Kong 1986 Shrine
|
||||
key: A Summer's End Shrine
|
||||
parent: Shrines
|
||||
title: A Summer's End — Hong Kong 1986 Shrine
|
||||
---
|
||||
|
||||
<section class="content__section">
|
||||
|
|
|
@ -6,7 +6,7 @@ desc: My gallery for A Summer's End — Hong Kong 1986.
|
|||
tags: a summers end shrine page
|
||||
eleventyNavigation:
|
||||
key: Gallery
|
||||
parent: A Summer's End — Hong Kong 1986 Shrine
|
||||
parent: A Summer's End Shrine
|
||||
order: 3
|
||||
---
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ tags: a summers end shrine page
|
|||
toc: true
|
||||
eleventyNavigation:
|
||||
key: Playlists
|
||||
parent: A Summer's End — Hong Kong 1986 Shrine
|
||||
parent: A Summer's End Shrine
|
||||
order: 1
|
||||
---
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ tags: a summers end shrine page
|
|||
toc: true
|
||||
eleventyNavigation:
|
||||
key: Trivia
|
||||
parent: A Summer's End — Hong Kong 1986 Shrine
|
||||
parent: A Summer's End Shrine
|
||||
order: 2
|
||||
---
|
||||
|
||||
|
|
Loading…
Reference in New Issue