diff --git a/pages/[...slug].js b/pages/[...slug].js index 7305bf04..b16fff72 100644 --- a/pages/[...slug].js +++ b/pages/[...slug].js @@ -98,7 +98,9 @@ export async function getStaticProps({ params: { slug } }) { let fullSlug = slug.join('/') console.log('[读取Notion]', fullSlug) if (BLOG.PSEUDO_STATIC) { - fullSlug += '.html' + if (!fullSlug.endsWith('.html')) { + fullSlug += '.html' + } } const from = `slug-props-${fullSlug}` const props = await getGlobalNotionData({ from })