feat: show og image

This commit is contained in:
KazooTTT
2025-02-06 14:54:20 +08:00
parent 09f1dfde9d
commit f7aece07e8
3 changed files with 15 additions and 5 deletions

View File

@ -38,7 +38,9 @@ const readingTime: string = remarkPluginFrontmatter.readingTime;
}}
>
<ArticleContainer className="grow break-words" dataPagefindBody={true}>
<div id="blog-hero" class="mb-12"><Masthead content={post} readingTime={readingTime} /></div>
<div id="blog-hero" class="mb-12">
<Masthead content={post} readingTime={readingTime} ogImage={socialImage} />
</div>
<div class="flex flex-col gap-10 lg:flex-row lg:items-start">
{!!headings.length && <TOC headings={headings} />}
<div