小修复

This commit is contained in:
tangly1024
2023-06-20 17:01:48 +08:00
parent e65b4bbe82
commit 6b59677c4e
2 changed files with 6 additions and 7 deletions

View File

@@ -4,7 +4,6 @@ import { useRouter } from 'next/router'
import Link from 'next/link'
import { BlogItem } from './BlogItem'
import { AdSlot } from '@/components/GoogleAdsense'
import { Fragment } from 'react'
export const BlogListPage = props => {
const { page = 1, posts, postCount } = props
@@ -20,10 +19,10 @@ export const BlogListPage = props => {
<div className="w-full md:pr-8 mb-12">
<div id="container">
{posts?.map((p, index) => (<>
{posts?.map((p, index) => (<div key={p.id}>
{(index + 1) % 3 === 0 && <AdSlot type='flow' />}
<BlogItem key={p.id} post={p} />
</>))}
<BlogItem post={p} />
</div>))}
</div>