mess with sitemap

This commit is contained in:
2023-05-01 16:44:40 +09:30
parent 52c75b127e
commit 9d0c5f3eef
4 changed files with 12 additions and 5 deletions

View File

@ -23,7 +23,8 @@ module.exports = function (eleventyConfig) {
})
}
});
return tagsList;
const sortedTagsList = new Set(Array.from(tagsList).sort());
return sortedTagsList;
});
// limit filter

View File

@ -1,6 +1,6 @@
<nav>
<a href="/">/</a>
<a href="/pages/">/pages</a>
<a href="/sitemap/">/sitemap</a>
{# <a href="/about/">/about</a> #}
<a href="/links/">/links</a>
<a href="/credits">/credits</a>

View File

@ -1,5 +1,5 @@
---
title: lists
title: art
layout: layout/base.njk
eleventyImport.collections: ["art"]
---

View File

@ -1,10 +1,16 @@
---
layout: layout/base.njk
title: pages
title: sitemap
---
<div class="pages-article">
[home](/)
[sitemap](/sitemap/) \<-- you are here babey!!
[links](/links/)
[credits](/credits/)
[journal.html](/journal_html/)
{% for tag in collections.tagsList %}
{{tag}}
[{{tag}}]({{"/" + tag + "/"}})
{% for post in collections[tag] %}
\- [{{ post.data.title or post.data.page.fileSlug }}](/{{ tag }}/{{ post.data.page.fileSlug }})
{% endfor %}