mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-02 23:16:51 +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) {
|
export default function Category(props) {
|
||||||
const theme = siteConfig('THEME', BLOG.THEME, props.NOTION_CONFIG)
|
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 }) {
|
export async function getStaticProps({ locale }) {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import { useRouter } from 'next/router'
|
|||||||
const TagIndex = props => {
|
const TagIndex = props => {
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const theme = siteConfig('THEME', BLOG.THEME, props.NOTION_CONFIG)
|
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) {
|
export async function getStaticProps(req) {
|
||||||
|
|||||||
Reference in New Issue
Block a user