Skip to content

Commit 9c9044a

Browse files
committed
add bio to author
1 parent d4e6991 commit 9c9044a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/lib/og-image.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,11 @@ export function OgPageImage({ title, subtitle, detail }: OgPageImageProps): Reac
180180

181181
export function OgAuthorImage({
182182
name,
183+
bio,
183184
postCount,
184185
}: {
185186
name: string;
187+
bio?: string;
186188
postCount: number;
187189
}): ReactNode {
188190
return (
@@ -222,6 +224,19 @@ export function OgAuthorImage({
222224
>
223225
{name}
224226
</div>
227+
{bio && (
228+
<div
229+
style={{
230+
fontSize: "22",
231+
fontWeight: 400,
232+
color: "#a1a1aa",
233+
lineHeight: 1.4,
234+
maxWidth: "700",
235+
}}
236+
>
237+
{bio}
238+
</div>
239+
)}
225240
</div>
226241

227242
<div style={{ display: "flex", alignItems: "center", gap: "16" }}>

0 commit comments

Comments
 (0)