mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
22 lines
684 B
JavaScript
22 lines
684 B
JavaScript
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
|