mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-12-01 01:14:47 +00:00
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
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:
parent
d2cd5ffee3
commit
7171c2cdeb
8 changed files with 8 additions and 51 deletions
|
|
@ -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" />}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue