Skip to content

Commit

Permalink
Ads for Magzine
Browse files Browse the repository at this point in the history
  • Loading branch information
tangly1024 committed Sep 14, 2024
1 parent 05e88bf commit a7945be
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions themes/magzine/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import AlgoliaSearchModal from '@/components/AlgoliaSearchModal'
import Comment from '@/components/Comment'
import { AdSlot } from '@/components/GoogleAdsense'
import LoadingCover from '@/components/LoadingCover'
import replaceSearchResult from '@/components/Mark'
import NotionPage from '@/components/NotionPage'
import ShareBar from '@/components/ShareBar'
import WWAds from '@/components/WWAds'
import { siteConfig } from '@/lib/config'
import { useGlobal } from '@/lib/global'
import { isBrowser } from '@/lib/utils'
Expand Down Expand Up @@ -173,6 +175,9 @@ const LayoutSlug = props => {
return (
<>
<div {...props} className='w-full mx-auto max-w-screen-3xl'>
{/* 广告位 */}
<WWAds orientation='horizontal' />

{/* 文章锁 */}
{lock && <ArticleLock validPassword={validPassword} />}

Expand Down Expand Up @@ -205,6 +210,8 @@ const LayoutSlug = props => {
<ShareBar post={post} />
{/* 上一篇下一篇 */}
<PostNavAround prev={prev} next={next} />

<AdSlot />
{/* 评论区 */}
<Comment frontMatter={post} />
</section>
Expand Down Expand Up @@ -243,6 +250,10 @@ const LayoutSlug = props => {
<TouchMeCard />
</div>

<div>
<WWAds />
</div>

{/* 底部留白 */}
<div></div>
</div>
Expand Down

0 comments on commit a7945be

Please sign in to comment.