diff --git a/themes/fukasawa/LayoutCategoryIndex.js b/themes/fukasawa/LayoutCategoryIndex.js index e44e86dc..9e9cdd9c 100644 --- a/themes/fukasawa/LayoutCategoryIndex.js +++ b/themes/fukasawa/LayoutCategoryIndex.js @@ -4,7 +4,7 @@ import LayoutBase from './LayoutBase' export const LayoutCategoryIndex = (props) => { const { locale } = useGlobal() - const { categories } = props + const { categoryOptions } = props return (
@@ -12,7 +12,7 @@ export const LayoutCategoryIndex = (props) => { {locale.COMMON.CATEGORY}:
- {categories && categories.map(category => { + {categoryOptions?.map(category => { return ( { const { locale } = useGlobal() - const { tags } = props + const { tagOptions } = props return
{locale.COMMON.TAGS}:
- { tags.map(tag => { + { tagOptions.map(tag => { return
}) }
diff --git a/themes/fukasawa/components/AsideLeft.js b/themes/fukasawa/components/AsideLeft.js index 9b438bd4..adec77fa 100644 --- a/themes/fukasawa/components/AsideLeft.js +++ b/themes/fukasawa/components/AsideLeft.js @@ -9,9 +9,9 @@ import { useRouter } from 'next/router' import DarkModeButton from '@/components/DarkModeButton' function AsideLeft (props) { - const { tags, currentTag, categories, currentCategory, post, slot, siteInfo } = props + const { tagOptions, currentTag, categoryOptions, currentCategory, post, slot, siteInfo } = props const router = useRouter() - return
+ return
@@ -31,12 +31,12 @@ function AsideLeft (props) { {router.asPath !== '/tag' &&

- +
} {router.asPath !== '/category' &&

- +
}