mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-10-03 13:17:07 +00:00
feat(web): add CrawlProof ad unit to /blog/*
Reusable AdUnit component (div[data-cp-ad] + ad.js via next/script) placed in-content on the blog index and post pages, scoped to /blog/* only. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
8107140228
commit
d76dd498f2
3 changed files with 29 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ import type { ReactNode } from "react";
|
|||
import type { Metadata } from "next";
|
||||
import { publicClient } from "@/lib/supabase";
|
||||
import { SiteShell } from "@/components/site-shell";
|
||||
import { AdUnit } from "@/components/ad-unit";
|
||||
import { sanitizeRenderedHtml } from "@/lib/html";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
|
@ -118,6 +119,9 @@ export default async function BlogPostPage({
|
|||
style={{ lineHeight: 1.7 }}
|
||||
dangerouslySetInnerHTML={{ __html: html }}
|
||||
/>
|
||||
<div style={{ display: "flex", justifyContent: "center", marginTop: "2.5rem" }}>
|
||||
<AdUnit slot="709f4f1d-667a-4888-9040-90f5f65120f2" format="banner_300x250" />
|
||||
</div>
|
||||
</article>
|
||||
</SiteShell>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue