初步完成HEXO主题

This commit is contained in:
tangly1024
2022-01-24 17:19:08 +08:00
parent 952e258ed7
commit 5afa7fa9fd
18 changed files with 369 additions and 56 deletions

View File

@@ -6,6 +6,6 @@ import { Layout404 } from '@/themes'
* @constructor
*/
export default function Custom404 () {
return <Layout404 />
export default function Custom404 (props) {
return <Layout404 {...props}/>
}

View File

@@ -11,7 +11,7 @@ import { LayoutSlug } from '@/themes'
*/
const About = (props) => {
if (!props.post) {
return <Custom404 />
return <Custom404 {...props} />
}
return <LayoutSlug {...props} />
}

View File

@@ -11,7 +11,7 @@ import Custom404 from '@/pages/404'
*/
const Slug = (props) => {
if (!props.post) {
return <Custom404 />
return <Custom404 {...props} />
}
return <LayoutSlug {...props} />
}

View File

@@ -6,7 +6,7 @@ import Custom404 from '@/pages/404'
const Page = (props) => {
if (!props?.meta) {
return <Custom404 />
return <Custom404 {...props} />
}
return <LayoutPage {...props} />
}

View File

@@ -16,7 +16,7 @@ export async function getStaticProps ({ params }) {
latestPosts
} = await getGlobalNotionData({
from,
includePage: true,
includePage: false,
tagsCount: 0
})
const filteredPosts = allPosts.filter(