{p.title}
{p.summary}
import BLOG from '@/blog.config' import { useGlobal } from '@/lib/global' import { useRouter } from 'next/router' import Link from 'next/link' export const BlogList = (props) => { const { posts, postCount } = props const { locale } = useGlobal() const router = useRouter() const totalPage = Math.ceil(postCount / BLOG.POSTS_PER_PAGE) const page = 1 const showNext = page < totalPage && posts.length === BLOG.POSTS_PER_PAGE && posts.length < postCount const currentPage = +page return
{p.summary}