logicsrc-web: move blog ads from the page bottom to the top

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 12:23:54 +00:00
parent 92d0666e98
commit e63ff2e8e3
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>
);