fix. 评论插件;fukasawa广告组件

This commit is contained in:
tangly1024
2023-11-11 23:12:44 +08:00
parent 1965fff2f8
commit 2ebd3fdaa3
4 changed files with 52 additions and 37 deletions

View File

@@ -8,6 +8,7 @@ import ArticleAround from './ArticleAround'
import { AdSlot } from '@/components/GoogleAdsense'
import LazyImage from '@/components/LazyImage'
import { formatDateFmt } from '@/lib/formatDate'
import WWAds from '@/components/WWAds'
/**
*
@@ -81,8 +82,7 @@ export default function ArticleDetail(props) {
</section>
<AdSlot type='in-article'/>
<WWAds className='w-full' orientation='horizontal'/>
</header>
{/* Notion文章主体 */}
@@ -91,6 +91,7 @@ export default function ArticleDetail(props) {
</section>
<section>
<AdSlot type='in-article'/>
{/* 分享 */}
<ShareBar post={post} />
</section>

View File

@@ -21,6 +21,7 @@ import { Style } from './style'
import replaceSearchResult from '@/components/Mark'
import CommonHead from '@/components/CommonHead'
import { siteConfig } from '@/lib/config'
import WWAds from '@/components/WWAds'
const Live2D = dynamic(() => import('@/components/Live2D'))
@@ -124,7 +125,10 @@ const LayoutIndex = (props) => {
*/
const LayoutPostList = (props) => {
return <LayoutBase {...props}>
{siteConfig('POST_LIST_STYLE') === 'page' ? <BlogListPage {...props} /> : <BlogListScroll {...props} />}
<div className='w-full p-2'><WWAds className='w-full' orientation='horizontal'/></div>
{siteConfig('POST_LIST_STYLE') === 'page' ? <BlogListPage {...props} /> : <BlogListScroll {...props} />}
</LayoutBase>
}