feat: wrapped article with <article> element

This commit is contained in:
草师傅 2025-07-23 18:44:55 +08:00
parent 4387aa1f6a
commit 0f0f925dd7
Signed by: gb
GPG key ID: 43330A030E2D6478

View file

@ -49,25 +49,27 @@ const cover = customFeaturedImage || matchedImage_src?.src || firstImageURL || `
ogImage={cover}
author={authorInfo.map((a: any) => a.name).join(', ')}
>
<h1 class="title">{entry.data.title}</h1>
{authorInfo.map((a: any) => <AuthorInfo data={a} />)}
<span class="date">{new Date(entry.data.pubDate).toISOString().split('T')[0]}</span>
{headings.length !== 0 && <TableOfContents headings={headings} />}
{entry.data.summary && <p class="summary">{entry.data.summary}</p> }
<div class="content">
<Content />
</div>
<article>
<h1 class="title">{entry.data.title}</h1>
{authorInfo.map((a: any) => <AuthorInfo data={a} />)}
<span class="date">{new Date(entry.data.pubDate).toISOString().split('T')[0]}</span>
{headings.length !== 0 && <TableOfContents headings={headings} />}
{entry.data.summary && <p class="summary">{entry.data.summary}</p> }
<div class="content">
<Content />
</div>
<div class="extra-post" style="margin-top: 2rem; border-top: 1px solid var(--border-color); padding-top: 1rem;">
<ReplyViaEmail title={entry.data.title} email={authorInfo[0].email} />
<br>
<a href="/blog">&larr; Back to posts</a>
{!noscript && <h2>Comments</h2> <Comments />}
{!noscript &&
<script>
import "katex/dist/contrib/copy-tex.js"
</script>
}
<div class="extra-post" style="margin-top: 2rem; border-top: 1px solid var(--border-color); padding-top: 1rem;">
<ReplyViaEmail title={entry.data.title} email={authorInfo[0].email} />
<br>
<a href="/blog">&larr; Back to posts</a>
{!noscript && <h2>Comments</h2> <Comments />}
{!noscript &&
<script>
import "katex/dist/contrib/copy-tex.js"
</script>
}
</article>
</div>
</Layout>
<style>