mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-31 23:16:54 +00:00
fix themes
This commit is contained in:
@@ -193,7 +193,7 @@ const LayoutIndex = (props) => {
|
||||
})
|
||||
}, [])
|
||||
|
||||
return <div {...props} />
|
||||
return <></>
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -203,9 +203,7 @@ const LayoutIndex = (props) => {
|
||||
* @returns
|
||||
*/
|
||||
const LayoutPostList = (props) => {
|
||||
return <div {...props} >
|
||||
<div className='mt-10'><BlogPostListPage {...props} /></div>
|
||||
</div>
|
||||
return <></>
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -217,7 +215,7 @@ const LayoutSlug = (props) => {
|
||||
const { post, prev, next, lock, validPassword } = props
|
||||
|
||||
return (
|
||||
<div {...props} >
|
||||
<>
|
||||
{/* 文章锁 */}
|
||||
{lock && <ArticleLock validPassword={validPassword} />}
|
||||
|
||||
@@ -250,7 +248,7 @@ const LayoutSlug = (props) => {
|
||||
|
||||
<TocDrawer {...props} />
|
||||
</div>}
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -261,7 +259,7 @@ const LayoutSlug = (props) => {
|
||||
* @returns
|
||||
*/
|
||||
const LayoutSearch = (props) => {
|
||||
return <div {...props}></div>
|
||||
return <></>
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -273,20 +271,20 @@ const LayoutSearch = (props) => {
|
||||
const LayoutArchive = (props) => {
|
||||
const { archivePosts } = props
|
||||
|
||||
return <div {...props}>
|
||||
return <>
|
||||
<div className="mb-10 pb-20 md:py-12 py-3 min-h-full">
|
||||
{Object.keys(archivePosts)?.map(archiveTitle => <BlogArchiveItem key={archiveTitle} archiveTitle={archiveTitle} archivePosts={archivePosts} />)}
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
}
|
||||
|
||||
/**
|
||||
* 404
|
||||
*/
|
||||
const Layout404 = props => {
|
||||
return <div {...props}>
|
||||
return <>
|
||||
<div className='w-full h-96 py-80 flex justify-center items-center'>404 Not found.</div>
|
||||
</div>
|
||||
</>
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -295,7 +293,7 @@ const Layout404 = props => {
|
||||
const LayoutCategoryIndex = (props) => {
|
||||
const { categoryOptions } = props
|
||||
const { locale } = useGlobal()
|
||||
return <div {...props}>
|
||||
return <>
|
||||
<div className='bg-white dark:bg-gray-700 py-10'>
|
||||
<div className='dark:text-gray-200 mb-5'>
|
||||
<i className='mr-4 fas fa-th' />{locale.COMMON.CATEGORY}:
|
||||
@@ -317,7 +315,7 @@ const LayoutCategoryIndex = (props) => {
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user