From 112f003d295ec318d7a6ca7823a4db5b83623f67 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Thu, 15 Jun 2023 15:48:16 +0800 Subject: [PATCH] fix/page-search-example --- pages/search/index.js | 2 +- themes/example/LayoutSearch.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/search/index.js b/pages/search/index.js index 937e8c18..680b14e1 100644 --- a/pages/search/index.js +++ b/pages/search/index.js @@ -49,7 +49,7 @@ const Search = props => { type: 'website' } - props = { ...props, meta, posts: { filteredPosts } } + props = { ...props, meta, posts: filteredPosts } return }> diff --git a/themes/example/LayoutSearch.js b/themes/example/LayoutSearch.js index 23b10b7a..4b120d09 100644 --- a/themes/example/LayoutSearch.js +++ b/themes/example/LayoutSearch.js @@ -8,7 +8,7 @@ import Mark from 'mark.js' import LayoutBase from './LayoutBase' import { isBrowser } from '@/lib/utils' -export const LayoutSearch = props => { +const LayoutSearch = props => { const { keyword } = props const router = useRouter() @@ -52,3 +52,5 @@ export const LayoutSearch = props => { } + +export default LayoutSearch