mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 15:09:22 +00:00
25 lines
858 B
JavaScript
25 lines
858 B
JavaScript
import { useGlobal } from '@/lib/global'
|
|
import BLOG from '@/blog.config'
|
|
import LayoutBase from './LayoutBase'
|
|
import TagItem from './components/TagItem'
|
|
|
|
export const LayoutTagIndex = (props) => {
|
|
const { tags } = props
|
|
const { locale } = useGlobal()
|
|
const meta = {
|
|
title: `${locale.COMMON.TAGS} | ${BLOG.TITLE}`,
|
|
description: BLOG.DESCRIPTION,
|
|
type: 'website'
|
|
}
|
|
return <LayoutBase meta={meta} {...props}>
|
|
<div className='bg-white dark:bg-gray-700 px-10 py-10 shadow h-full'>
|
|
<div className='dark:text-gray-200 mb-5'><i className='fas fa-tags mr-4'/>{locale.COMMON.TAGS}:</div>
|
|
<div id='tags-list' className='duration-200 flex flex-wrap'>
|
|
{ tags.map(tag => {
|
|
return <div key={tag.name} className='p-2'><TagItem key={tag.name} tag={tag} /></div>
|
|
}) }
|
|
</div>
|
|
</div>
|
|
</LayoutBase>
|
|
}
|