diff --git a/components/TagItem.js b/components/TagItem.js index fa0aa8dd..8935e0e3 100644 --- a/components/TagItem.js +++ b/components/TagItem.js @@ -3,7 +3,7 @@ import Link from 'next/link' const TagItem = ({ tag }) => ( -

{tag}

diff --git a/layouts/ArticleLayout.js b/layouts/ArticleLayout.js index 53874548..5867ecfe 100644 --- a/layouts/ArticleLayout.js +++ b/layouts/ArticleLayout.js @@ -75,10 +75,17 @@ const ArticleLayout = ({ {/* 文章信息 */} -
+
+ {frontMatter.slug !== 'about' && (<> + + {BLOG.author} + + )} {frontMatter.tags && (
{frontMatter.tags.map(tag => ( @@ -87,18 +94,8 @@ const ArticleLayout = ({
)} - {frontMatter.slug !== 'about' && (<> - - {BLOG.author} -
{BLOG.author}
-
- )} - {frontMatter.type[0] !== 'Page' && ( -
+
{formatDate( frontMatter?.date?.start_date || frontMatter.createdTime, BLOG.lang