22import { getCollection } from ' astro:content' ;
33import BlogLayout from ' @/layouts/BlogLayout.astro' ;
44import { formatTimestamp } from ' @/lib/formatDate' ;
5- import { AUTHORS , CATEGORIES } from ' @/lib/article' ;
65import { getPostImage } from ' @/lib/postImage' ;
7-
8- type AuthorInfo = {
9- name: string ;
10- role: string ;
11- avatar: ImageMetadata ;
12- socials? : { twitter? : string ; github? : string ; bluesky? : string };
13- url? : string ;
14- };
15- import { AuthorAvatar } from ' @/components/AuthorAvatar' ;
166import { Icon , faRss } from ' @rivet-gg/icons' ;
177
188const MONTHS = [
@@ -33,8 +23,6 @@ const blogPosts = posts
3323 ... post ,
3424 slug ,
3525 image: getPostImage (post ),
36- author: AUTHORS [post .data .author ] as AuthorInfo ,
37- category: { ... CATEGORIES [post .data .category ], id: post .data .category },
3826 title: data .title ,
3927 description: data .description ,
4028 };
@@ -138,7 +126,6 @@ for (const entry of changelogPosts) {
138126 <time datetime = { article .data .published .toISOString ()} class = " text-zinc-500" >
139127 { formatTimestamp (article .data .published )}
140128 </time >
141- <span class = " rounded-full border border-white/10 px-2 py-0.5 text-xs text-zinc-400" >{ article .category .name } </span >
142129 </div >
143130 <div class = " group relative" >
144131 <h3 class = " mt-2 text-xl font-normal leading-7 text-white" >
@@ -149,14 +136,6 @@ for (const entry of changelogPosts) {
149136 </p >
150137 </div >
151138 </div >
152- <div class = " max-w-xl" >
153- <div class = " relative mt-4 flex items-center gap-x-3" >
154- <AuthorAvatar name = { article .author .name } avatarSrc = { article .author .avatar .src } client :load />
155- <div class = " text-sm text-zinc-400" >
156- { article .author .name }
157- </div >
158- </div >
159- </div >
160139 </article >
161140 </a >
162141 ))}
0 commit comments