mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
20 lines
680 B
JavaScript
20 lines
680 B
JavaScript
import LayoutBase from './LayoutBase'
|
|
import LatestPostsGroup from './components/LatestPostsGroup'
|
|
import BlogPostListPage from './components/BlogPostListPage'
|
|
import { CONFIG_NEXT } from './index'
|
|
|
|
export const LayoutPage = ({ page, posts, tags, meta, categories, postCount, latestPosts }) => {
|
|
return (
|
|
<LayoutBase
|
|
meta={meta}
|
|
tags={tags}
|
|
sideBarSlot={<LatestPostsGroup posts={latestPosts} />}
|
|
rightAreaSlot={CONFIG_NEXT.RIGHT_LATEST_POSTS && <LatestPostsGroup posts={latestPosts} />}
|
|
postCount={postCount}
|
|
categories={categories}
|
|
>
|
|
<BlogPostListPage page={page} posts={posts} postCount={postCount} />
|
|
</LayoutBase>
|
|
)
|
|
}
|