Merge pull request #95 from tangly1024/preview

category 预渲染
This commit is contained in:
tangly1024
2022-03-22 16:51:55 +08:00
committed by GitHub

View File

@@ -41,7 +41,7 @@ export async function getStaticPaths () {
const from = 'category-paths'
const { categories } = await getGlobalNotionData({ from })
return {
paths: Object.keys(categories).map(category => ({ params: { category } })),
paths: Object.keys(categories).map(category => ({ params: { category: categories[category]?.name } })),
fallback: true
}
}