No ads on the homepage; low-profile text-link ads elsewhere (#251)
Some checks are pending
CI / build (push) Waiting to run
Deploy to dev2 / deploy (push) Waiting to run
test / test (push) Waiting to run

- Homepage: removed the 300x250 ad.network unit, its CSS, its rescan effect and the home-only ad.js tag (the ad.network meta verification tag stays).
- Blog index and posts: the single unit is now text_link (AdUnit default), full width with an 8px margin, no centred 300x250 box.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Anthony Ettinger 2026-10-20 23:06:24 -07:00 • committed by GitHub
parent d2cd5ffee3
commit 7171c2cdeb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 8 additions and 51 deletions

View file

@ -5,7 +5,6 @@ import { renderPageMarkup } from "@/lib/page-markup";
import { pageMetadata, specMetadata } from "@/lib/page-meta";
import { HomeInteractivity } from "@/components/home-interactivity";
import { siteFooterHtml } from "@/lib/site-footer";
import Script from "next/script";
import { AD_NETWORK_CODE } from "@/lib/ad-network";
// The legacy SPA served the same single page for every top-level path and just
@ -59,7 +58,6 @@ export default async function Page({
<>
<div id="app" dangerouslySetInnerHTML={{ __html: renderPageMarkup(slug?.[0] ? `/${slug[0]}` : "/", footer) }} />
<HomeInteractivity />
{!slug?.length && <Script src="https://crawlproof.com/ad.js" strategy="afterInteractive" />}
</>
);
}

View file

@ -145,9 +145,7 @@ export default async function BlogPostPage({
</>
) : null}
</div>
<div style={{ display: "flex", justifyContent: "center", marginBottom: "2rem" }}>
<AdUnit slot="709f4f1d-667a-4888-9040-90f5f65120f2" format="banner_300x250" />
</div>
<AdUnit slot="709f4f1d-667a-4888-9040-90f5f65120f2" />
{post.featured_image?.url ? (
// eslint-disable-next-line @next/next/no-img-element
<img

View file

@ -54,9 +54,7 @@ export default async function BlogIndex(): Promise<ReactNode> {
</p>
</div>
<div style={{ display: "flex", justifyContent: "center", marginBottom: "2rem" }}>
<AdUnit slot="709f4f1d-667a-4888-9040-90f5f65120f2" format="banner_300x250" />
</div>
<AdUnit slot="709f4f1d-667a-4888-9040-90f5f65120f2" />
{posts.length === 0 ? (
<p style={{ color: "#5b6b7a" }}>No posts yet.</p>