mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-11-29 15:51:52 +00:00
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:
parent
92d0666e98
commit
cc59884c82
2 changed files with 7 additions and 7 deletions
|
|
@ -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>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue