1
0

Update colletion mapping

This commit is contained in:
suroh 2025-03-09 13:34:35 +01:00
parent 5847b0c4af
commit 84effd6d56

@ -52,7 +52,7 @@ export default function (config) {
}, langCategory))
categories.set(lang, collection.getFilteredByGlob(`src/content/${lang}/${catName}/*/*.md`).reduce((accumulator, category) => {
categories.set(lang, collection.getFilteredByGlob(`src/content/${lang}/${catName}/*.md`).reduce((accumulator, category) => {
const categoryIsKey = accumulator.keys().find(key => category === key)
if (!categoryIsKey) {
const categoryKey = accumulator.keys().find(key => category.data.tags.includes(key.data.tags[0]))