diff --git a/components/BlogPostCard.js b/components/BlogPostCard.js index 82a1b5ff..5d4eb7c8 100644 --- a/components/BlogPostCard.js +++ b/components/BlogPostCard.js @@ -39,7 +39,7 @@ const BlogPostCard = ({ post, showSummary }) => { - {(!showPreview || showSummary) &&

+ {(!showPreview || showSummary) &&

{post.summary}

} @@ -57,7 +57,7 @@ const BlogPostCard = ({ post, showSummary }) => { /> } -
+
{locale.COMMON.ARTICLE_DETAIL} diff --git a/components/MenuButtonGroup.js b/components/MenuButtonGroup.js index 2ef9b09a..50d4d817 100644 --- a/components/MenuButtonGroup.js +++ b/components/MenuButtonGroup.js @@ -25,7 +25,7 @@ const MenuButtonGroup = ({ allowCollapse = false, postCount }) => { return -
+
{link.name}
diff --git a/pages/article/[slug].js b/pages/article/[slug].js index 50fbf3f1..d07466ae 100644 --- a/pages/article/[slug].js +++ b/pages/article/[slug].js @@ -37,7 +37,7 @@ const Slug = ({ const drawerRight = useRef(null) const targetRef = typeof window !== 'undefined' ? document.getElementById('container') : null - const floatSlot = post?.toc.length > 1 ?
{ drawerRight?.current?.handleSwitchVisible() }} />
: null + const floatSlot = post?.toc?.length > 1 ?
{ drawerRight?.current?.handleSwitchVisible() }} />
: null return (