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