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

@@ -159,7 +159,7 @@ const LayoutSlug = props => {
<div id='container-inner' className='w-full p-4'>
{lock && <ArticleLock validPassword={validPassword} />}
{!lock && (
{!lock && post && (
<div id='article-wrapper' className='mx-auto'>
<NotionPage {...props} />
<Comment frontMatter={post} />