From aa33febef4254ab7d05989aaa89795f0161e770b Mon Sep 17 00:00:00 2001 From: tangly Date: Sat, 5 Nov 2022 16:59:42 +0800 Subject: [PATCH] =?UTF-8?q?tag=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/hexo/LayoutTag.js | 14 ++++++++++++-- themes/next/components/StickyBar.js | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/themes/hexo/LayoutTag.js b/themes/hexo/LayoutTag.js index 7380aef0..1e827be8 100644 --- a/themes/hexo/LayoutTag.js +++ b/themes/hexo/LayoutTag.js @@ -1,10 +1,20 @@ +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' export const LayoutTag = (props) => { - const { tags, posts, tag } = props + console.log(props) + + const currentTag = props.tags.find((t) => { + return t.name === props.tag + }) return - +
+ +
+ {BLOG.POST_LIST_STYLE === 'page' ? : }
} diff --git a/themes/next/components/StickyBar.js b/themes/next/components/StickyBar.js index fdcba64d..2f56dc4a 100644 --- a/themes/next/components/StickyBar.js +++ b/themes/next/components/StickyBar.js @@ -39,7 +39,7 @@ const StickyBar = ({ children }) => { return (