leilukin-site/src/pages/sitemap.njk

124 lines
3.3 KiB
Plaintext
Raw Normal View History

2024-04-06 14:51:07 +08:00
---
2024-04-17 23:52:25 +08:00
layout: main/content
2024-04-06 14:51:07 +08:00
title: Site Map
2024-04-11 20:13:42 +08:00
eleventyExcludeFromCollections: true
eleventyComputed:
desc: Site map of {{ sitemeta.siteName | safe }}.
2024-04-06 14:51:07 +08:00
---
2024-04-17 23:45:32 +08:00
<p>This page lists the links to the pages on my website for easier navigation.</p>
2024-04-06 14:51:07 +08:00
2024-04-17 23:54:31 +08:00
<ul role="list" class="sitemap">
2024-04-17 23:45:32 +08:00
{% for page in collections.pages %}
<li>
<a href="{{ page.url }}">{{ page.data.title or page.data.metadata.title }}</a>
</li>
{% if page.data.title === "Blog" %}
<ul>
{% for page in collections["blog pages"] %}
{% if page.data.title !== "Blog" %}
2024-04-17 23:45:32 +08:00
<li>
<a href="{{ page.url }}">{{ page.data.title or page.data.metadata.title }}</a>
2024-04-17 23:45:32 +08:00
</li>
{% endif %}
{%- endfor %}
</ul>
{% endif %}
2024-04-18 00:39:28 +08:00
{% if page.data.title === "Articles" %}
<ul>
{% for page in collections["articles"] %}
<li>
<a href="{{ page.url }}">{{ page.data.articleTitle }}</a>
</li>
{%- endfor %}
</ul>
{% endif %}
2024-04-18 00:39:28 +08:00
{% if page.data.title === "Projects" %}
<ul>
{% for page in collections["project pages"] %}
<li>
<a href="{{ page.url }}">{{ page.data.title }}</a>
</li>
{%- endfor %}
</ul>
{% endif %}
{% if page.data.title === "Shrines" %}
<ul>
{% for page in collections["shrine home"] %}
<li>
<a href="{{ page.url }}">{{ page.data.title }}</a>
</li>
<ul>
{% if "asummersend" in page.url %}
{% for page in collections["a summers end shrine page"] %}
<li>
<a href="{{ page.url }}">{{ page.data.title }}</a>
</li>
{% endfor %}
{% endif %}
</ul>
{%- endfor %}
</ul>
{% endif %}
2024-04-17 23:45:32 +08:00
{%- endfor %}
<li><a href="/changelogs/">Changelogs</a></li>
<ul>
{% for page in collections["changelog pages"] %}
<li>
<a href="{{ page.url }}">{{ page.data.changelogNav }}</a>
</li>
{%- endfor %}
</ul>
{% for archive in collections.archive %}
<li><a href="{{ archive.url }}">{{ archive.data.title }}</a></li>
{% endfor %}
2024-04-17 23:45:32 +08:00
</ul>
<style>
main ul {
display: grid;
gap: 0.5rem;
margin-top: 0.3em;
}
2024-04-17 23:54:31 +08:00
.sitemap {
margin: 1em 0;
padding: 0 0 0 1em;
list-style: none;
}
2024-04-17 23:54:31 +08:00
.sitemap a:focus {
outline: 0.15rem solid var(--clr-link);
}
2024-04-17 23:54:31 +08:00
.sitemap li {
padding-left: 0.5em;
align-items: start;
}
2024-04-17 23:54:31 +08:00
.sitemap li::marker {
content: "▶";
}
2024-04-18 00:01:17 +08:00
.sitemap ul {
padding-left: 1.4em;
2024-04-18 00:01:17 +08:00
}
2024-04-17 23:54:31 +08:00
.sitemap ul li::marker {
content: "★";
}
2024-04-17 23:54:31 +08:00
.sitemap ul ul li::marker {
content: "♥";
}
2024-04-17 23:54:31 +08:00
.sitemap ul ul ul li::marker {
content: "❣";
}
</style>