/* eslint-disable @next/next/no-img-element */ import { siteConfig } from '@/lib/config' import CONFIG from '../config' export const Blog = (props) => { const count = siteConfig('STARTER_BLOG_COUNT', 3, CONFIG) const posts = props?.allNavPages ? props.allNavPages.slice(0, count) : [] return <> {/* */}
{/* 区块标题文字 */}
{siteConfig('STARTER_BLOG_TITLE', null, CONFIG)}

{siteConfig('STARTER_BLOG_TEXT_1', null, CONFIG)}

{/* 博客列表 此处优先展示3片文章 */}
{posts?.map((item, index) => { return
{item.publishDay}

{item.title}

{item.summary}

}) }
{/* */} }