diff --git a/components/ThemeSwitch.js b/components/ThemeSwitch.js index 4e84f36f..fe9b1de7 100644 --- a/components/ThemeSwitch.js +++ b/components/ThemeSwitch.js @@ -19,7 +19,7 @@ export function ThemeSwitch() {
{/*
{theme}
*/} - {ALL_THEME.map(t => { const selected = t === theme return diff --git a/themes/matery/LayoutSlug.js b/themes/matery/LayoutSlug.js index 1eb6e978..db78b172 100644 --- a/themes/matery/LayoutSlug.js +++ b/themes/matery/LayoutSlug.js @@ -51,7 +51,13 @@ export const LayoutSlug = props => { {!lock &&
{post?.type === 'Post' && <> -
+

@@ -60,7 +66,14 @@ export const LayoutSlug = props => {
{/* Notion文章主体 */} -
+
{post && }
@@ -92,7 +105,13 @@ export const LayoutSlug = props => { {post.type === 'Post' && } {post?.toc?.length > 0 &&
-
+
diff --git a/themes/matery/components/HeaderArticle.js b/themes/matery/components/HeaderArticle.js index f7c7379d..e48160cb 100644 --- a/themes/matery/components/HeaderArticle.js +++ b/themes/matery/components/HeaderArticle.js @@ -2,12 +2,18 @@ export default function HeaderArticle({ post, siteInfo }) { const headerImage = post?.page_cover ? post?.page_cover : siteInfo?.pageCover const title = post?.title return ( -