feat: opengraph design

This commit is contained in:
enscribe 2024-09-12 16:34:38 -07:00
parent 0b430e5d43
commit c410c499e1
No known key found for this signature in database
GPG key ID: 9BBD5C4114E25322
38 changed files with 179 additions and 66 deletions

View file

@ -4,6 +4,7 @@ import { formatDate, readingTime, parseAuthors } from '@lib/utils'
import { Image } from 'astro:assets'
import { Badge } from '@/components/ui/badge'
import { Separator } from '@/components/ui/separator'
import AvatarComponent from '@/components/ui/avatar'
import Link from './Link.astro'
type Props = {
@ -54,12 +55,12 @@ const authors = await parseAuthors(entry.data.authors ?? [])
<>
{authors.map((author) => (
<div class="flex items-center gap-x-1.5">
<Image
<AvatarComponent
client:load
src={author.avatar}
alt={author.name}
width={18}
height={18}
class="rounded-full"
fallback={author.name[0]}
className="size-5 rounded-full"
/>
<span>{author.name}</span>
</div>