mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
分页多语言
This commit is contained in:
@@ -34,9 +34,9 @@ export async function getStaticPaths({ locale }) {
|
||||
}
|
||||
}
|
||||
|
||||
export async function getStaticProps({ params: { page } }) {
|
||||
export async function getStaticProps({ params: { page }, locale }) {
|
||||
const from = `page-${page}`
|
||||
const props = await getGlobalData({ from })
|
||||
const props = await getGlobalData({ from, locale })
|
||||
const { allPages } = props
|
||||
const POST_PREVIEW_LINES = siteConfig(
|
||||
'POST_PREVIEW_LINES',
|
||||
|
||||
Reference in New Issue
Block a user