Skip to content

Commit e7abf4c

Browse files
committed
Merge branch 'main' of github.com:izadoesdev/mono
2 parents 0609079 + a8c1f5b commit e7abf4c

7 files changed

Lines changed: 410 additions & 18 deletions

File tree

apps/docs/app/blog/[[...slug]]/page.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { createRelativeLink } from 'fumadocs-ui/mdx';
1010
import { getMDXComponents } from '@/mdx-components';
1111
import { formatDistanceToNow } from 'date-fns';
1212
import { StructuredData } from '@/components/structured-data';
13+
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
1314

1415
export default async function BlogPage(props: {
1516
params: Promise<{ slug?: string[] }>;
@@ -30,7 +31,7 @@ export default async function BlogPage(props: {
3031
// Safely extract string values with fallbacks
3132
const title = String(page.data.title || 'Databuddy Blog');
3233
const description = String(page.data.description || 'Privacy-first analytics insights');
33-
const author = String(page.data.author || 'Databuddy Team');
34+
const author = String(page.data.author || 'izadoesdev');
3435
const category = String(page.data.category || 'General');
3536
const url = `https://www.databuddy.cc/blog/${params.slug?.join('/') || ''}`;
3637

@@ -59,9 +60,10 @@ export default async function BlogPage(props: {
5960
<div className="flex flex-wrap items-center gap-6 text-sm">
6061
{/* Author info with avatar placeholder */}
6162
<div className="flex items-center gap-3">
62-
<div className="w-10 h-10 rounded-full bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center text-white font-semibold">
63-
{author.charAt(0)}
64-
</div>
63+
<Avatar className="flex items-center gap-3">
64+
<AvatarImage src="/blog-photo.png" />
65+
<AvatarFallback>IZ</AvatarFallback>
66+
</Avatar>
6567
<div>
6668
<div className="font-semibold text-foreground">{author}</div>
6769
<div className="text-xs text-muted-foreground">Author</div>
@@ -240,10 +242,9 @@ export async function generateMetadata(props: {
240242
const page = blogSource.getPage(params.slug);
241243
if (!page) notFound();
242244

243-
// Safely extract metadata with fallbacks
244245
const title = `${String(page.data.title || 'Databuddy Blog')} | Databuddy Blog`;
245246
const description = String(page.data.description || 'Privacy-first analytics insights and industry expertise from the Databuddy team.');
246-
const author = String(page.data.author || 'Databuddy Team');
247+
const author = String(page.data.author || 'izadoesdev');
247248
const url = `https://www.databuddy.cc/blog/${params.slug?.join('/') || ''}`;
248249
const category = String(page.data.category || 'Analytics');
249250

@@ -264,8 +265,6 @@ export async function generateMetadata(props: {
264265
authors: [{ name: author }],
265266
creator: 'Databuddy',
266267
publisher: 'Databuddy',
267-
publishedTime: page.data.publishedAt,
268-
modifiedTime: page.data.lastModified,
269268
category,
270269
openGraph: {
271270
title,

0 commit comments

Comments
 (0)