-
diff --git a/src/pages/links.njk b/src/pages/links.njk
index f95b8d0b..6ecaa555 100644
--- a/src/pages/links.njk
+++ b/src/pages/links.njk
@@ -6,6 +6,8 @@ metadata:
type: article
date: 2022-01-08
isContentDivided: true
+eleventyNavigation:
+ key: Links
---
-
+ {{ entry.title }}
+ {%- if entry.children.length -%}
+
-
+ {%- for child in entry.children %}{{ renderNavListItem(child) }}{% endfor -%}
+
+{%- endmacro %}
+
- - {{ page.data.title or page.data.metadata.title }} - - {% if page.data.title === "Blog" %} -
- - {{ page.data.title or page.data.metadata.title }} - - {% endif %} - {%- endfor %} -
- - {{ page.data.articleTitle }} - - {%- endfor %} -
- - {{ page.data.title }} - - {%- endfor %} -
- - {{ page.data.title }} - -
- - {{ page.data.title }} - - {% endfor %} - {% endif %} -
- Changelogs -
- - {{ page.data.changelogNav }} - - {%- endfor %} -
- {{ archive.data.title }} - {% endfor %} + {%- for entry in navPages %}{{ renderNavListItem(entry) }}{%- endfor -%}
This page lists the links to the pages on my website for easier navigation.
+{% set navPages = collections.all | eleventyNavigation %} +{% macro renderNavListItem(entry) -%} +-
- {% for page in collections.pages %}
-
-
- {% for page in collections["blog pages"] %}
- {% if page.data.title !== "Blog" %}
-
-
- {% for page in collections["articles"] %}
-
-
- {% for page in collections["project pages"] %}
-
-
- {% for page in collections["shrine home"] %}
-
-
- {% if "asummersend" in page.url %}
- {% for page in collections["a summers end shrine page"] %}
-
-
- {% for page in collections["changelog pages"] %}
-