diff --git a/themes/Hexo/components/BlogPostCard.js b/themes/Hexo/components/BlogPostCard.js index 1e7a332b..6cba3568 100644 --- a/themes/Hexo/components/BlogPostCard.js +++ b/themes/Hexo/components/BlogPostCard.js @@ -9,7 +9,7 @@ import CONFIG_HEXO from '../config_hexo' const BlogPostCard = ({ post, showSummary }) => { const showPreview = CONFIG_HEXO.POST_LIST_PREVIEW && post.blockMap return ( -
+
diff --git a/themes/Hexo/components/BlogPostListPage.js b/themes/Hexo/components/BlogPostListPage.js index b08a0da6..a9ba1289 100644 --- a/themes/Hexo/components/BlogPostListPage.js +++ b/themes/Hexo/components/BlogPostListPage.js @@ -20,7 +20,7 @@ const BlogPostListPage = ({ page = 1, posts = [], postCount }) => { return (
{/* 文章列表 */} -
+
{posts.map(post => ( ))} diff --git a/themes/Hexo/components/BlogPostListScroll.js b/themes/Hexo/components/BlogPostListScroll.js index 53a1d93f..ce23f44c 100644 --- a/themes/Hexo/components/BlogPostListScroll.js +++ b/themes/Hexo/components/BlogPostListScroll.js @@ -55,7 +55,7 @@ const BlogPostListScroll = ({ posts = [], currentSearch, showSummary = CONFIG_HE return
{/* 文章列表 */} -
+
{postsToShow.map(post => ( ))} diff --git a/themes/Hexo/components/HeaderArticle.js b/themes/Hexo/components/HeaderArticle.js index b51df350..84ad8688 100644 --- a/themes/Hexo/components/HeaderArticle.js +++ b/themes/Hexo/components/HeaderArticle.js @@ -40,17 +40,17 @@ export default function HeaderArticle ({ post }) { style={{ backgroundImage: headerImage }} >
-
+
{/* 文章Title */} -
+
{post.title}
-
+
{post.category && <> - + {post.category} diff --git a/themes/NEXT/LayoutTag.js b/themes/NEXT/LayoutTag.js index 47d0580b..2e7addfc 100644 --- a/themes/NEXT/LayoutTag.js +++ b/themes/NEXT/LayoutTag.js @@ -15,13 +15,9 @@ export const LayoutTag = (props) => { type: 'website' } - // 将当前选中的标签置顶🔝 - const currentTag = tags?.find(r => r?.name === tag) - const newTags = currentTag ? [currentTag].concat(tags.filter(r => r?.name !== tag)) : tags.filter(r => r?.name !== tag) - return - +
diff --git a/themes/NEXT/components/ArticleDetail.js b/themes/NEXT/components/ArticleDetail.js index ae430539..194020dd 100644 --- a/themes/NEXT/components/ArticleDetail.js +++ b/themes/NEXT/components/ArticleDetail.js @@ -91,7 +91,7 @@ export default function ArticleDetail (props) { )}
- +   | diff --git a/themes/index.js b/themes/index.js index d17405e5..e9b63872 100644 --- a/themes/index.js +++ b/themes/index.js @@ -3,7 +3,7 @@ */ // export * from './Empty' // 空主题 -// export * from './NEXT' +export * from './NEXT' // export * from './Fukasawa' // export * from './Hexo' -export * from './Medium' +// export * from './Medium'