Skip to content

Commit 8c0318c

Browse files
committed
修复分类和标签首页
1 parent 439cebd commit 8c0318c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pages/category/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ import { DynamicLayout } from '@/themes/theme'
1010
*/
1111
export default function Category(props) {
1212
const theme = siteConfig('THEME', BLOG.THEME, props.NOTION_CONFIG)
13-
return <DynamicLayout theme={theme} layoutName='LayoutPostList' {...props} />
13+
return (
14+
<DynamicLayout theme={theme} layoutName='LayoutCategoryIndex' {...props} />
15+
)
1416
}
1517

1618
export async function getStaticProps({ locale }) {

pages/tag/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { useRouter } from 'next/router'
1212
const TagIndex = props => {
1313
const router = useRouter()
1414
const theme = siteConfig('THEME', BLOG.THEME, props.NOTION_CONFIG)
15-
return <DynamicLayout theme={theme} layoutName='LayoutPostList' {...props} />
15+
return <DynamicLayout theme={theme} layoutName='LayoutTagIndex' {...props} />
1616
}
1717

1818
export async function getStaticProps(req) {

0 commit comments

Comments
 (0)