Update colletion mapping
This commit is contained in:
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]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user