Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/app/blog/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
'use client';

import { AdUnit } from '@/components/ads/ad-unit';
import { MainLayout } from '@/components/layout';

/**
* Every blog page carries one CrawlProof unit under the post: the text strip,
* which collapses to nothing when there is no advertiser and, like every
* AdUnit here, renders nothing for signed-in members.
*/
export default function BlogLayout({ children }: { children: React.ReactNode }) {
return <MainLayout>{children}</MainLayout>;
return (
<MainLayout>
{children}
<AdUnit format="text_link" className="flex justify-center" />
</MainLayout>
);
}
Loading