fix(使所有主题的404能够正常运转)

(cherry picked from commit 3e3b7667d043522a3d782b804815b8f1683127d1)
This commit is contained in:
anime
2024-11-08 00:14:09 +08:00
parent 47b8d97420
commit 3374068163
15 changed files with 42 additions and 40 deletions

View File

@@ -224,35 +224,37 @@ const LayoutSlug = props => {
<>
{lock && <ArticleLock validPassword={validPassword} />}
<div className={`px-2 ${fullWidth ? '' : 'xl:max-w-4xl 2xl:max-w-6xl'}`}>
{/* 文章信息 */}
<ArticleInfo post={post} />
{!lock && post && (
<div className={`px-2 ${fullWidth ? '' : 'xl:max-w-4xl 2xl:max-w-6xl'}`}>
{/* 文章信息 */}
<ArticleInfo post={post} />
{/* 广告嵌入 */}
{/* <AdSlot type={'in-article'} /> */}
<WWAds orientation='horizontal' className='w-full' />
{/* 广告嵌入 */}
{/* <AdSlot type={'in-article'} /> */}
<WWAds orientation='horizontal' className='w-full' />
<div id='article-wrapper'>
{/* Notion文章主体 */}
{!lock && <NotionPage post={post} />}
<div id='article-wrapper'>
{/* Notion文章主体 */}
{!lock && <NotionPage post={post} />}
</div>
{/* 分享 */}
<ShareBar post={post} />
{/* 广告嵌入 */}
<AdSlot type={'in-article'} />
{post?.type === 'Post' && (
<>
<ArticleAround prev={prev} next={next} />
<RecommendPosts recommendPosts={recommendPosts} />
</>
)}
{/* 评论区 */}
<Comment frontMatter={post} />
</div>
{/* 分享 */}
<ShareBar post={post} />
{/* 广告嵌入 */}
<AdSlot type={'in-article'} />
{post?.type === 'Post' && (
<>
<ArticleAround prev={prev} next={next} />
<RecommendPosts recommendPosts={recommendPosts} />
</>
)}
{/* 评论区 */}
<Comment frontMatter={post} />
</div>
)}
</>
)
}