import BLOG from '@/blog.config' import { useGlobal } from '@/lib/global' import Link from 'next/link' import Card from './components/Card' import LayoutBase from './LayoutBase' export const LayoutCategoryIndex = props => { const { categories } = props const { locale } = useGlobal() const meta = { title: `${locale.COMMON.CATEGORY} | ${BLOG.TITLE}`, description: BLOG.DESCRIPTION, type: 'website' } return (
{locale.COMMON.CATEGORY}:
{categories.map(category => { return (
{category.name}({category.count})
) })}
) }