@@ -10,6 +10,7 @@ import { createRelativeLink } from 'fumadocs-ui/mdx';
1010import { getMDXComponents } from '@/mdx-components' ;
1111import { formatDistanceToNow } from 'date-fns' ;
1212import { StructuredData } from '@/components/structured-data' ;
13+ import { Avatar , AvatarFallback , AvatarImage } from '@/components/ui/avatar' ;
1314
1415export 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