{lock && }
- {!lock && (
+ {!lock && post && (
{
{/* 文章锁 */}
{lock && }
- {!lock && (
+ {!lock && post && (
{/* 文章信息 */}
diff --git a/themes/matery/index.js b/themes/matery/index.js
index 7cbcad19ddb..13a5992f094 100644
--- a/themes/matery/index.js
+++ b/themes/matery/index.js
@@ -253,7 +253,7 @@ const LayoutSlug = props => {
className={`${fullWidth ? '' : '-mt-32'} transition-all duration-300 rounded-md mx-3 lg:border lg:rounded-xl lg:py-4 bg-white dark:bg-hexo-black-gray dark:border-black`}>
{lock && }
- {!lock && (
+ {!lock && post && (
{/* 文章信息 */}
{post?.type && post?.type === 'Post' && (
diff --git a/themes/medium/index.js b/themes/medium/index.js
index ee5eb121f4e..b51db693622 100644
--- a/themes/medium/index.js
+++ b/themes/medium/index.js
@@ -209,7 +209,7 @@ const LayoutSlug = props => {
{/* 文章锁 */}
{lock && }
- {!lock && (
+ {!lock && post && (
{/* 文章信息 */}
diff --git a/themes/movie/index.js b/themes/movie/index.js
index 00b90346c4e..c205d6d02b8 100644
--- a/themes/movie/index.js
+++ b/themes/movie/index.js
@@ -315,7 +315,7 @@ const LayoutSlug = props => {
return (
<>
- {!lock ? (
+ {!lock ? post && (
diff --git a/themes/nobelium/index.js b/themes/nobelium/index.js
index ed2b6ea6ea4..44afc5c004a 100644
--- a/themes/nobelium/index.js
+++ b/themes/nobelium/index.js
@@ -243,7 +243,7 @@ const LayoutSlug = props => {
<>
{lock && }
- {!lock && (
+ {!lock && post && (
<>
diff --git a/themes/photo/index.js b/themes/photo/index.js
index f369e6fb28c..64f6a1f06b5 100644
--- a/themes/photo/index.js
+++ b/themes/photo/index.js
@@ -315,7 +315,7 @@ const LayoutSlug = props => {
return (
<>
- {!lock ? (
+ {!lock ? post && (
diff --git a/themes/plog/index.js b/themes/plog/index.js
index be778f685b7..b715206f42a 100644
--- a/themes/plog/index.js
+++ b/themes/plog/index.js
@@ -198,7 +198,7 @@ const LayoutSlug = props => {
<>
{lock && }
- {!lock && (
+ {!lock && post && (
<>
diff --git a/themes/simple/index.js b/themes/simple/index.js
index 397e6a69d34..29516202e1a 100644
--- a/themes/simple/index.js
+++ b/themes/simple/index.js
@@ -224,35 +224,37 @@ const LayoutSlug = props => {
<>
{lock && }
-
- {/* 文章信息 */}
-
-
- {/* 广告嵌入 */}
- {/* */}
-
-
-
+
+ )}
>
)
}
diff --git a/themes/starter/index.js b/themes/starter/index.js
index 35d837bd559..c4f9af8c032 100644
--- a/themes/starter/index.js
+++ b/themes/starter/index.js
@@ -159,7 +159,7 @@ const LayoutSlug = props => {
- {/* Notion文章主体 */}
- {!lock && }
-
+ {!lock && post && (
+
+ {/* 文章信息 */}
+
+
+ {/* 广告嵌入 */}
+ {/* */}
+
+
+
+ {/* 分享 */}
+
- {/* 广告嵌入 */}
-
+ {/* 广告嵌入 */}
+
- {post?.type === 'Post' && (
- <>
-
-
- >
- )}
+ {post?.type === 'Post' && (
+ <>
+
+
+ >
+ )}
- {/* 评论区 */}
-
-
+ {/* 评论区 */}
+
+ {/* Notion文章主体 */}
+ {!lock && }
+
- {/* 分享 */}
-
{lock && }
- {!lock && (
+ {!lock && post && (