From 80f46560218b57aa2cc30770f73b57b807d61ab1 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Fri, 3 Feb 2023 14:00:59 +0800 Subject: [PATCH] =?UTF-8?q?matery=E4=B8=BB=E9=A2=98=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=20tag/category?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/matery/LayoutCategory.js | 4 ++-- themes/matery/LayoutCategoryIndex.js | 4 ++-- themes/matery/LayoutTag.js | 4 ++-- themes/matery/LayoutTagIndex.js | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/themes/matery/LayoutCategory.js b/themes/matery/LayoutCategory.js index ab8a2b39..6e9524ab 100644 --- a/themes/matery/LayoutCategory.js +++ b/themes/matery/LayoutCategory.js @@ -6,7 +6,7 @@ import Link from 'next/link' import HeaderArticle from './components/HeaderArticle' export const LayoutCategory = props => { - const { category, categories } = props + const { category, categoryOptions } = props return ( } > @@ -15,7 +15,7 @@ export const LayoutCategory = props => {
- {categories.map(e => { + {categoryOptions.map(e => { const selected = e.name === category return ( diff --git a/themes/matery/LayoutCategoryIndex.js b/themes/matery/LayoutCategoryIndex.js index fffc6ea5..31014270 100644 --- a/themes/matery/LayoutCategoryIndex.js +++ b/themes/matery/LayoutCategoryIndex.js @@ -3,7 +3,7 @@ import HeaderArticle from './components/HeaderArticle' import LayoutBase from './LayoutBase' export const LayoutCategoryIndex = props => { - const { categories } = props + const { categoryOptions } = props return ( } > @@ -13,7 +13,7 @@ export const LayoutCategoryIndex = props => {
- {categories.map(e => { + {categoryOptions.map(e => { return (
diff --git a/themes/matery/LayoutTag.js b/themes/matery/LayoutTag.js index 3f3d4fbd..3572d019 100644 --- a/themes/matery/LayoutTag.js +++ b/themes/matery/LayoutTag.js @@ -8,7 +8,7 @@ import { useGlobal } from '@/lib/global' import TagItemMiddle from './components/TagItemMiddle' export const LayoutTag = (props) => { - const { tags, tag } = props + const { tagOptions, tag } = props const { locale } = useGlobal() @@ -23,7 +23,7 @@ export const LayoutTag = (props) => {
- {tags.map(e => { + {tagOptions.map(e => { const selected = tag === e.name return (
diff --git a/themes/matery/LayoutTagIndex.js b/themes/matery/LayoutTagIndex.js index 7c196f7e..bfcb41b1 100644 --- a/themes/matery/LayoutTagIndex.js +++ b/themes/matery/LayoutTagIndex.js @@ -4,7 +4,7 @@ import TagItemMiddle from './components/TagItemMiddle' import LayoutBase from './LayoutBase' export const LayoutTagIndex = props => { - const { tags } = props + const { tagOptions } = props const { locale } = useGlobal() return ( } > @@ -17,7 +17,7 @@ export const LayoutTagIndex = props => {
- {tags.map(tag => { + {tagOptions.map(tag => { return (