Skip to content

Commit

Permalink
feat(添加BlogPostList头尾广告块):
Browse files Browse the repository at this point in the history
  • Loading branch information
qixing-jk committed Dec 16, 2024
1 parent d5ae329 commit 2245387
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions themes/heo/components/BlogPostListPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import CONFIG from '../config'
import BlogPostCard from './BlogPostCard'
import BlogPostListEmpty from './BlogPostListEmpty'
import PaginationNumber from './PaginationNumber'
import { AdSlot } from '@/components/GoogleAdsense'

/**
* 文章列表分页表格
Expand All @@ -24,6 +25,7 @@ const BlogPostListPage = ({ page = 1, posts = [], postCount, siteInfo }) => {
} else {
return (
<div id='container' className='w-full'>
<AdSlot type='flow'/>
{/* 文章列表 */}
<div
className={`${POST_TWO_COLS && '2xl:grid 2xl:grid-cols-2'} grid-cols-1 gap-5`}>
Expand All @@ -36,6 +38,7 @@ const BlogPostListPage = ({ page = 1, posts = [], postCount, siteInfo }) => {
/>
))}
</div>
<AdSlot type='flow'/>

{showPagination && (
<PaginationNumber page={page} totalPage={totalPage} />
Expand Down

0 comments on commit 2245387

Please # to comment.