mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
一些备注
This commit is contained in:
@@ -26,6 +26,7 @@ export async function getStaticPaths() {
|
||||
|
||||
const from = 'slug-paths'
|
||||
const { allPages } = await getGlobalData({ from })
|
||||
// 根据slug中的 / 分割成prefix和slug两个字段 ; 例如 article/test
|
||||
const paths = allPages
|
||||
?.filter(row => checkSlug(row))
|
||||
.map(row => ({
|
||||
|
||||
Reference in New Issue
Block a user