chore(package.json): update 11ty to 3.1.1

This commit is contained in:
Cory Dransfeldt 2025-06-03 14:15:41 -07:00
parent 3ec3dfc949
commit 2d6a8800c5
No known key found for this signature in database
4 changed files with 141 additions and 315 deletions

View file

@ -25,12 +25,5 @@ export default async function () {
groupedMap.get(letter).push(tag);
}
const grouped = [...groupedMap.entries()]
.sort(([a], [b]) => a.localeCompare(b))
.map(([letter, tags]) => ({
letter,
tags: tags.sort((a, b) => a.tag.localeCompare(b.tag)),
}));
return grouped;
return [...groupedMap.entries()].sort(([a], [b]) => a.localeCompare(b)).map(([letter, tags]) => ({ letter, tags: tags.sort((a, b) => a.tag.localeCompare(b.tag)) }));
}

View file

@ -11,7 +11,7 @@ permalink: /tags/index.html
<a href="#{{ group.letter }}">{{ group.letter }}</a>
{% endfor %}
</nav>
{% for group in tags %}
{% for group in groupedTags %}
<section id="{{ group.letter }}">
<h3>{{ group.letter }}</h3>
<ul class="tag-list">