leilukin-site/src/sitemap.njk

85 lines
2.2 KiB
Plaintext
Raw Normal View History

2024-04-06 06:51:07 +00:00
---
2024-04-17 15:52:25 +00:00
layout: main/content
2024-04-06 06:51:07 +00:00
title: Site Map
2024-04-11 12:13:42 +00:00
eleventyExcludeFromCollections: true
2024-04-11 15:29:15 +00:00
metadata:
desc: Site map of Leilukin's Hub.
2024-04-06 06:51:07 +00:00
---
2024-04-17 15:45:32 +00:00
<p>This page lists the links to the pages on my website for easier navigation.</p>
2024-04-06 06:51:07 +00:00
2024-04-17 15:54:31 +00:00
<ul role="list" class="sitemap">
2024-04-17 15:45:32 +00:00
{% for page in collections.pages %}
<li>
<a href="{{ page.url }}">{{ page.data.title or page.data.metadata.title }}</a>
{% if page.data.title === "Blog" %}
2024-04-06 06:51:07 +00:00
<ul>
2024-04-17 15:45:32 +00:00
{% for page in collections["blog pages"] %}
{% if page.data.title !== "Blog" %}
<li>
<a href="{{ page.url }}">{{ page.data.title or page.data.metadata.title }}</a>
</li>
{% endif %}
{%- endfor %}
2024-04-06 06:51:07 +00:00
</ul>
2024-04-17 15:45:32 +00:00
{% endif %}
{% if page.data.title === "Articles" %}
2024-04-06 06:51:07 +00:00
<ul>
2024-04-17 15:45:32 +00:00
{% for page in collections["articles"] %}
<li>
<a href="{{ page.url }}">{{ page.data.articleTitle }}</a>
</li>
{%- endfor %}
2024-04-06 06:51:07 +00:00
</ul>
2024-04-17 15:45:32 +00:00
{% endif %}
{% if page.data.title === "Changelogs" %}
2024-04-06 06:51:07 +00:00
<ul>
2024-04-17 15:45:32 +00:00
{% for page in collections["changelog pages"] %}
<li>
<a href="{{ page.url }}">{{ page.data.changelogNav }}</a>
</li>
{%- endfor %}
2024-04-06 06:51:07 +00:00
</ul>
2024-04-17 15:45:32 +00:00
{% endif %}
</li>
{%- endfor %}
</ul>
<style>
main ul {
display: grid;
gap: 0.5rem;
}
2024-04-17 15:54:31 +00:00
.sitemap {
margin: 0 0 0 1em;
padding: 0;
list-style: none;
}
2024-04-17 15:54:31 +00:00
.sitemap a:focus {
outline: 0.15rem solid var(--clr-link);
}
2024-04-17 15:54:31 +00:00
.sitemap li {
padding-left: 0.5em;
align-items: start;
}
2024-04-17 15:54:31 +00:00
.sitemap li::marker {
content: "▶";
}
2024-04-17 15:54:31 +00:00
.sitemap ul li::marker {
content: "★";
}
2024-04-17 15:54:31 +00:00
.sitemap ul ul li::marker {
content: "♥";
}
2024-04-17 15:54:31 +00:00
.sitemap ul ul ul li::marker {
content: "❣";
}
</style>