mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 23:16:49 +00:00
18 lines
586 B
JavaScript
18 lines
586 B
JavaScript
import BLOG from '@/blog.config'
|
|
import { useGlobal } from '@/lib/global'
|
|
import BlogPostListScroll from './components/BlogPostListScroll'
|
|
import LayoutBase from './LayoutBase'
|
|
|
|
export const LayoutCategory = (props) => {
|
|
const { tags, posts, category } = props
|
|
const { locale } = useGlobal()
|
|
const meta = {
|
|
title: `${category} | ${locale.COMMON.CATEGORY} | ${BLOG.TITLE}`,
|
|
description: BLOG.DESCRIPTION,
|
|
type: 'website'
|
|
}
|
|
return <LayoutBase {...props} meta={meta}>
|
|
<BlogPostListScroll posts={posts} tags={tags} currentCategory={category}/>
|
|
</LayoutBase>
|
|
}
|