logicsrc-web: move blog ads from the page bottom to the top (#245)

The blog index and post pages each ended with an AdUnit right above the
site footer. It was each page's only ad, so it moves under the heading
(under the byline on posts) instead of being removed.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Anthony Ettinger 2026-10-19 05:30:08 -07:00 • committed by GitHub
parent 92d0666e98
commit cc59884c82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View file

@ -145,6 +145,9 @@ 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>
{post.featured_image?.url ? (
// eslint-disable-next-line @next/next/no-img-element
<img
@ -158,9 +161,6 @@ 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>
);

View file

@ -54,6 +54,10 @@ 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>
{posts.length === 0 ? (
<p style={{ color: "#5b6b7a" }}>No posts yet.</p>
) : (
@ -122,10 +126,6 @@ export default async function BlogIndex(): Promise<ReactNode> {
})}
</ul>
)}
<div style={{ display: "flex", justifyContent: "center", marginTop: "2rem" }}>
<AdUnit slot="709f4f1d-667a-4888-9040-90f5f65120f2" format="banner_300x250" />
</div>
</div>
</SiteShell>
);