Skip to content

Commit 3846804

Browse files
committed
feat: add Google AdSense block below related posts section
1 parent d841f01 commit 3846804

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pages/post/[id].tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,16 @@ export default function Post({ postData, relatedPosts }: InferGetStaticPropsType
152152
)}
153153
</div>
154154
)}
155+
{/* ads */}
156+
<div className="mt-10 flex justify-center">
157+
<ins
158+
className="adsbygoogle"
159+
style={{display: "block"}}
160+
data-ad-client="ca-pub-5103032140213770"
161+
data-ad-slot="3384415421"
162+
data-ad-format="autorelaxed"
163+
></ins>
164+
</div>
155165
</main>
156166

157167
{/* Table of contents */}

0 commit comments

Comments
 (0)