Merge pull request #3033 from tangly1024/fix/layout-category-tag

修复分类和标签首页
This commit is contained in:
tangly1024
2024-12-02 14:01:57 +08:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -10,7 +10,9 @@ import { DynamicLayout } from '@/themes/theme'
*/
export default function Category(props) {
const theme = siteConfig('THEME', BLOG.THEME, props.NOTION_CONFIG)
return <DynamicLayout theme={theme} layoutName='LayoutPostList' {...props} />
return (
<DynamicLayout theme={theme} layoutName='LayoutCategoryIndex' {...props} />
)
}
export async function getStaticProps({ locale }) {

View File

@@ -12,7 +12,7 @@ import { useRouter } from 'next/router'
const TagIndex = props => {
const router = useRouter()
const theme = siteConfig('THEME', BLOG.THEME, props.NOTION_CONFIG)
return <DynamicLayout theme={theme} layoutName='LayoutPostList' {...props} />
return <DynamicLayout theme={theme} layoutName='LayoutTagIndex' {...props} />
}
export async function getStaticProps(req) {