chore(package.json): update 11ty to 3.1.1
This commit is contained in:
parent
3ec3dfc949
commit
2d6a8800c5
4 changed files with 141 additions and 315 deletions
|
@ -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)) }));
|
||||
}
|
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue