@@ -6,8 +6,7 @@ import { ArticleSocials } from '@/components/ArticleSocials';
66import { Prose } from ' @/components/Prose' ;
77import { formatTimestamp } from ' @/lib/formatDate' ;
88import { AUTHORS , CATEGORIES } from ' @/lib/article' ;
9- import { AuthorAvatar } from ' @/components/AuthorAvatar' ;
10- import { Icon , faArrowLeft , faArrowRight , faBluesky , faGithub , faXTwitter } from ' @rivet-gg/icons' ;
9+ import { Icon , faArrowLeft , faArrowRight } from ' @rivet-gg/icons' ;
1110import * as mdxComponents from ' @/components/mdx' ;
1211
1312type AuthorInfo = {
@@ -62,8 +61,6 @@ const otherArticles = filteredOtherPosts.map((post) => {
6261 };
6362});
6463
65- const authorLink = author .socials ?.twitter || author .url || author .socials ?.github ;
66-
6764// BreadcrumbList schema
6865const breadcrumbSchema = {
6966 " @context" : " https://schema.org" ,
@@ -104,54 +101,17 @@ const breadcrumbSchema = {
104101
105102 <!-- Header -->
106103 <header class =" mb-12 mt-8" >
107- <span class =" text-accent text-xs font-medium uppercase tracking-[0.12em] " >
108- { category . name }
109- </span >
110- <h1 class =" mt-4 text-4xl font-normal leading-[1.1] tracking-tight text-white [text-wrap:balance] md:text-[3.25rem]" >
104+ <time datetime = { entry . data . published . toISOString () } class =" text-sm font-medium text-zinc-500 " >
105+ { formatTimestamp ( entry . data . published ) }
106+ </time >
107+ <h1 class =" mt-2 text-4xl font-normal leading-[1.1] tracking-tight text-white [text-wrap:balance] md:text-[3.25rem]" >
111108 { title }
112109 </h1 >
113110 { description && (
114111 <p class = " mt-5 text-lg font-light leading-7 text-zinc-400 [text-wrap:pretty] md:text-xl" >
115112 { description }
116113 </p >
117114 )}
118-
119- <div class =" mt-8 flex flex-wrap items-center gap-x-4 gap-y-3 border-t border-white/10 pt-6" >
120- <AuthorAvatar className =" size-10 shrink-0" name ={ author .name } avatarSrc ={ author .avatar .src } client:load />
121- <div class =" flex flex-col" >
122- <div class =" flex items-center gap-2" >
123- { authorLink ? (
124- <a href = { authorLink } target = " _blank" rel = " noopener noreferrer" class = " text-sm font-semibold text-white hover:text-accent transition-colors" >
125- { author .name }
126- </a >
127- ) : (
128- <span class = " text-sm font-semibold text-white" >{ author .name } </span >
129- )}
130- <div class =" flex items-center gap-2 text-zinc-500" >
131- { (author .socials ?.twitter || author .url ) && (
132- <a href = { author .socials ?.twitter || author .url } target = " _blank" rel = " noopener noreferrer" class = " hover:text-white transition-colors" >
133- <Icon icon = { faXTwitter } className = " h-3.5 w-auto" />
134- </a >
135- )}
136- { author .socials ?.bluesky && (
137- <a href = { author .socials .bluesky } target = " _blank" rel = " noopener noreferrer" class = " hover:text-white transition-colors" >
138- <Icon icon = { faBluesky } className = " h-3.5 w-auto" />
139- </a >
140- )}
141- { author .socials ?.github && (
142- <a href = { author .socials .github } target = " _blank" rel = " noopener noreferrer" class = " hover:text-white transition-colors" >
143- <Icon icon = { faGithub } className = " h-3.5 w-auto" />
144- </a >
145- )}
146- </div >
147- </div >
148- <p class =" text-xs text-zinc-500" >
149- { author .role }
150- <span class =" px-1.5 text-zinc-700" >·</span >
151- <time datetime ={ entry .data .published .toISOString ()} >{ formatTimestamp (entry .data .published )} </time >
152- </p >
153- </div >
154- </div >
155115 </header >
156116
157117 { image && (
0 commit comments