diff --git a/pages/search/index.js b/pages/search/index.js
index e8f51d32..e5eebdbb 100644
--- a/pages/search/index.js
+++ b/pages/search/index.js
@@ -36,6 +36,8 @@ const Search = props => {
const { theme } = useGlobal()
const ThemeComponents = ThemeMap[theme]
+ console.log('search', props)
+
return (
{category.name}({category.count})
- );
+ )
})}
- >;
+ >
}
export default GroupCategory
diff --git a/themes/hexo/LayoutSearch.js b/themes/hexo/LayoutSearch.js
index bb7225ca..ae1e938a 100644
--- a/themes/hexo/LayoutSearch.js
+++ b/themes/hexo/LayoutSearch.js
@@ -12,7 +12,7 @@ import Card from './components/Card'
import Link from 'next/link'
export const LayoutSearch = props => {
- const { keyword, tags, categories } = props
+ const { keyword, tagOptions, categoryOptions } = props
const { locale } = useGlobal()
const router = useRouter()
const currentSearch = keyword || router?.query?.s
@@ -49,7 +49,7 @@ export const LayoutSearch = props => {
{locale.COMMON.CATEGORY}:
- {categories?.map(category => {
+ {categoryOptions?.map(category => {
return (
{
{locale.COMMON.TAGS}: