mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-05 15:10:26 +00:00
feature: 剥离主题目录
This commit is contained in:
21
themes/NEXT/PageLayout.js
Normal file
21
themes/NEXT/PageLayout.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import BaseLayout from './BaseLayout'
|
||||
import LatestPostsGroup from './components/LatestPostsGroup'
|
||||
import BlogPostListPage from './components/BlogPostListPage'
|
||||
import _NEXT from './_NEXT'
|
||||
|
||||
const PageLayout = ({ page, posts, tags, meta, categories, postCount, latestPosts }) => {
|
||||
return (
|
||||
<BaseLayout
|
||||
meta={meta}
|
||||
tags={tags}
|
||||
sideBarSlot={<LatestPostsGroup posts={latestPosts} />}
|
||||
rightAreaSlot={_NEXT.RIGHT_LATEST_POSTS && <LatestPostsGroup posts={latestPosts} />}
|
||||
postCount={postCount}
|
||||
categories={categories}
|
||||
>
|
||||
<BlogPostListPage page={page} posts={posts} postCount={postCount} />
|
||||
</BaseLayout>
|
||||
)
|
||||
}
|
||||
|
||||
export default PageLayout
|
||||
Reference in New Issue
Block a user