Skip to content

Commit

Permalink
Merge pull request tangly1024#1387 from tangly1024/feat/4.0.10
Browse files Browse the repository at this point in the history
修复单页嵌套无法打开的问题
  • Loading branch information
tangly1024 committed Aug 1, 2023
2 parents b1395e6 + 2973a2d commit ff2b10a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .env.local
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# 环境变量 @see https://www.nextjs.cn/docs/basic-features/environment-variables
NEXT_PUBLIC_VERSION=4.0.9
NEXT_PUBLIC_VERSION=4.0.10
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
3 changes: 1 addition & 2 deletions pages/[prefix]/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion themes/hexo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const LayoutBase = props => {
{/* 主区块 */}
<main id="wrapper" className={`${CONFIG.HOME_BANNER_ENABLE ? '' : 'pt-16'} bg-hexo-background-gray dark:bg-black w-full py-8 md:px-8 lg:px-24 min-h-screen relative`}>
<div id="container-inner" className={(BLOG.LAYOUT_SIDEBAR_REVERSE ? 'flex-row-reverse' : '') + ' w-full mx-auto lg:flex lg:space-x-4 justify-center relative z-10'} >
<div className={`${className || ''} w-full max-w-4xl h-full overflow-x-hidden`}>
<div className={`${className || ''} w-full max-w-4xl h-full overflow-hidden`}>

<Transition
show={!onLoading}
Expand Down

0 comments on commit ff2b10a

Please sign in to comment.