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 (