{lock && }
- {!lock && (
+ {!lock && post && (
{
{/* 文章锁 */}
{lock && }
- {!lock && (
+ {!lock && post && (
{/* 文章信息 */}
diff --git a/themes/matery/index.js b/themes/matery/index.js
index 7cbcad19..13a5992f 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 ee5eb121..b51db693 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 00b90346..c205d6d0 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 ed2b6ea6..44afc5c0 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 f369e6fb..64f6a1f0 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 be778f68..b715206f 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 397e6a69..29516202 100644
--- a/themes/simple/index.js
+++ b/themes/simple/index.js
@@ -224,35 +224,37 @@ const LayoutSlug = props => {
<>
{lock && }
-
- {/* 文章信息 */}
-
+ {!lock && post && (
+
+ {/* 文章信息 */}
+
- {/* 广告嵌入 */}
- {/* */}
-
+ {/* 广告嵌入 */}
+ {/* */}
+
-
-
- {/* 广告嵌入 */}
-
-
- {post?.type === 'Post' && (
- <>
-
-
- >
- )}
-
- {/* 评论区 */}
-
-
+ )}
>
)
}
diff --git a/themes/starter/index.js b/themes/starter/index.js
index 35d837bd..c4f9af8c 100644
--- a/themes/starter/index.js
+++ b/themes/starter/index.js
@@ -159,7 +159,7 @@ const LayoutSlug = props => {
- {/* Notion文章主体 */}
- {!lock && }
+
+
+ {/* 广告嵌入 */}
+
+
+ {post?.type === 'Post' && (
+ <>
+
+
+ >
+ )}
+
+ {/* 评论区 */}
+
-
- {/* 分享 */}
-
+ {/* Notion文章主体 */}
+ {!lock && }
+
+
+ {/* 分享 */}
+
{lock && }
- {!lock && (
+ {!lock && post && (