mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
Merge pull request #3033 from tangly1024/fix/layout-category-tag
修复分类和标签首页
This commit is contained in:
@@ -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 }) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user