mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
24 lines
960 B
JavaScript
24 lines
960 B
JavaScript
import { useGlobal } from '@/lib/global'
|
|
import BLOG from '@/blog.config'
|
|
import LayoutBase from '@/themes/NEXT/LayoutBase'
|
|
import StickyBar from './components/StickyBar'
|
|
import CategoryList from './components/CategoryList'
|
|
import BlogPostListScroll from './components/BlogPostListScroll'
|
|
|
|
export const LayoutCategory = ({ tags, posts, category, categories, latestPosts, postCount }) => {
|
|
const { locale } = useGlobal()
|
|
const meta = {
|
|
title: `${category} | ${locale.COMMON.CATEGORY} | ${BLOG.title}`,
|
|
description: BLOG.description,
|
|
type: 'website'
|
|
}
|
|
return <LayoutBase meta={meta} tags={tags} currentCategory={category} postCount={postCount} latestPosts={latestPosts} categories={categories}>
|
|
<StickyBar>
|
|
<CategoryList currentCategory={category} categories={categories} />
|
|
</StickyBar>
|
|
<div className='md:mt-8'>
|
|
<BlogPostListScroll posts={posts} tags={tags} currentCategory={category}/>
|
|
</div>
|
|
</LayoutBase>
|
|
}
|