From 42d382f90007202540f3294dc5b826721d64023c Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Fri, 3 Feb 2023 14:05:45 +0800 Subject: [PATCH] medium tag/category --- themes/medium/LayoutCategoryIndex.js | 4 ++-- themes/medium/LayoutTagIndex.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/medium/LayoutCategoryIndex.js b/themes/medium/LayoutCategoryIndex.js index 5d200fe2..c9c79254 100644 --- a/themes/medium/LayoutCategoryIndex.js +++ b/themes/medium/LayoutCategoryIndex.js @@ -3,7 +3,7 @@ import Link from 'next/link' import LayoutBase from './LayoutBase' export const LayoutCategoryIndex = (props) => { - const { categories } = props + const { categoryOptions } = props const { locale } = useGlobal() return ( @@ -12,7 +12,7 @@ export const LayoutCategoryIndex = (props) => { {locale.COMMON.CATEGORY}:
- {categories && categories.map(category => { + {categoryOptions?.map(category => { return ( { - const { tags } = props + const { tagOptions } = props const { locale } = useGlobal() return ( @@ -13,7 +13,7 @@ export const LayoutTagIndex = props => { {locale.COMMON.TAGS}:
- {tags.map(tag => { + {tagOptions.map(tag => { return (