Compare commits

...

2 Commits

Author SHA1 Message Date
Helen Chong 64d7b6779a Iterate footer link collection to display links 2024-09-14 22:50:36 +08:00
Helen Chong d32bcb5ef1 Group all slash pages in one folder 2024-09-14 22:46:46 +08:00
19 changed files with 19 additions and 12 deletions

View File

@ -10,16 +10,18 @@
{% if currentUrl === "/sitemap/" %}aria-current="page"{% endif %}
href="/sitemap/
">Site Map</a></li>
{%- for link in collections["footer links"] -%}
<li><a
{% if currentUrl === "/changelogs/" %}aria-current="page"{% endif %}
href="/changelogs/"
>Changelogs</a></li>
{%- for statement in collections.statements -%}
<li><a
{% if entry.url == page.url %}aria-current="page"{% endif %}
href="{{ statement.url }}"
>{{ statement.data.title }}</a></li>
{%- endfor -%}
{% if link.url == page.url %}aria-current="page"{% endif %}
href="{{ link.url }}"
>{{ link.data.title }}</a></li>
{%- endfor -%}
{%- for statement in collections.statements -%}
<li><a
{% if statement.url == page.url %}aria-current="page"{% endif %}
href="{{ statement.url }}"
>{{ statement.data.title }}</a></li>
{%- endfor -%}
</ul>
{% endblock %}

View File

@ -2,7 +2,7 @@
{% block navbarLinks %}
{% set currentUrl %}{{ page.url }}{% endset %}
{% set navPages = collections.pages | eleventyNavigation %}
{% set navPages = collections["navbar links"] | eleventyNavigation %}
{%- for entry in navPages %}
<li>
<a {% if entry.url == page.url %}aria-current="page"{% endif %} href="{{ entry.url }}">{{ entry.title }}</a>

View File

@ -0,0 +1,3 @@
{
"tags": "footer links"
}

View File

@ -0,0 +1,3 @@
{
"tags": "navbar links"
}

View File

@ -2,9 +2,8 @@
"layout": "main/statement",
"tags": "statements",
"articleElement": true,
"permalink": "/{{ page.fileSlug }}/",
"eleventyComputed": {
"desc": "{{ sitemeta.siteName }}'s {{ keyword }}.",
"desc": "{{ sitemeta.siteName | safe }}'s {{ keyword }}.",
"eleventyNavigation":{
"key": "{{ title }}"
}