mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-04 23:16:53 +00:00
初步完成HEXO主题
This commit is contained in:
@@ -6,6 +6,6 @@ import { Layout404 } from '@/themes'
|
||||
* @constructor
|
||||
*/
|
||||
|
||||
export default function Custom404 () {
|
||||
return <Layout404 />
|
||||
export default function Custom404 (props) {
|
||||
return <Layout404 {...props}/>
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ import { LayoutSlug } from '@/themes'
|
||||
*/
|
||||
const About = (props) => {
|
||||
if (!props.post) {
|
||||
return <Custom404 />
|
||||
return <Custom404 {...props} />
|
||||
}
|
||||
return <LayoutSlug {...props} />
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ import Custom404 from '@/pages/404'
|
||||
*/
|
||||
const Slug = (props) => {
|
||||
if (!props.post) {
|
||||
return <Custom404 />
|
||||
return <Custom404 {...props} />
|
||||
}
|
||||
return <LayoutSlug {...props} />
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import Custom404 from '@/pages/404'
|
||||
|
||||
const Page = (props) => {
|
||||
if (!props?.meta) {
|
||||
return <Custom404 />
|
||||
return <Custom404 {...props} />
|
||||
}
|
||||
return <LayoutPage {...props} />
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ export async function getStaticProps ({ params }) {
|
||||
latestPosts
|
||||
} = await getGlobalNotionData({
|
||||
from,
|
||||
includePage: true,
|
||||
includePage: false,
|
||||
tagsCount: 0
|
||||
})
|
||||
const filteredPosts = allPosts.filter(
|
||||
|
||||
Reference in New Issue
Block a user