diff --git a/themes/hexo/LayoutCategory.js b/themes/hexo/LayoutCategory.js index a13a33a3..12abfa10 100644 --- a/themes/hexo/LayoutCategory.js +++ b/themes/hexo/LayoutCategory.js @@ -6,8 +6,8 @@ import BLOG from '@/blog.config' export const LayoutCategory = props => { const { category } = props return -
- +
+ {category}
{BLOG.POST_LIST_STYLE === 'page' ? : } diff --git a/themes/hexo/LayoutTag.js b/themes/hexo/LayoutTag.js index 75c308e5..1eb2c249 100644 --- a/themes/hexo/LayoutTag.js +++ b/themes/hexo/LayoutTag.js @@ -2,18 +2,23 @@ import BLOG from '@/blog.config' import BlogPostListScroll from './components/BlogPostListScroll' import BlogPostListPage from './components/BlogPostListPage' import LayoutBase from './LayoutBase' -import TagItemMini from '../next/components/TagItemMini' import React from 'react' +import Link from 'next/link' export const LayoutTag = (props) => { - const currentTag = props.tags.find((t) => { + const tag = props.tags.find((t) => { return t.name === props.tag }) return - {currentTag && ( -
- + {tag && ( + )} {BLOG.POST_LIST_STYLE === 'page' ? : }