diff --git a/.env.local b/.env.local index f7d7ec09..b97ea113 100644 --- a/.env.local +++ b/.env.local @@ -1,2 +1,2 @@ # 环境变量 @see https://www.nextjs.cn/docs/basic-features/environment-variables -NEXT_PUBLIC_VERSION=4.0.9 \ No newline at end of file +NEXT_PUBLIC_VERSION=4.0.10 \ No newline at end of file diff --git a/package.json b/package.json index 63168f1c..1bdfc1e5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "notion-next", - "version": "4.0.9", + "version": "4.0.10", "homepage": "https://github.com/tangly1024/NotionNext.git", "license": "MIT", "repository": { diff --git a/pages/[prefix]/index.js b/pages/[prefix]/index.js index 079f1a83..ecfea4e1 100644 --- a/pages/[prefix]/index.js +++ b/pages/[prefix]/index.js @@ -111,13 +111,12 @@ export async function getStaticProps({ params: { prefix } }) { // 处理非列表内文章的内信息 if (!props?.post) { - const pageId = prefix.slice(-1)[0] + const pageId = prefix if (pageId.length >= 32) { const post = await getNotion(pageId) props.post = post } } - // 无法获取文章 if (!props?.post) { props.post = null diff --git a/themes/hexo/index.js b/themes/hexo/index.js index e550c7b2..5cf1ccc6 100644 --- a/themes/hexo/index.js +++ b/themes/hexo/index.js @@ -71,7 +71,7 @@ const LayoutBase = props => { {/* 主区块 */}
-
+