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

@ -29,14 +29,14 @@ export async function parseAuthors(authors: string[]) {
const author = await getEntry('authors', slug)
return {
name: author?.data?.name || slug,
avatar: author?.data?.avatar || '/512x512.png',
avatar: author?.data?.avatar || '/static/512x512.png',
isRegistered: !!author,
}
} catch (error) {
console.error(`Error fetching author with slug ${slug}:`, error)
return {
name: slug,
avatar: '/512x512.png',
avatar: '/static/512x512.png',
isRegistered: false,
}
}