feat: remove the path attribute requirement from comments

This commit is contained in:
草师傅 2025-07-21 16:45:21 +08:00
parent 5adf3bc560
commit 4ab42f9543
Signed by: gb
GPG key ID: 43330A030E2D6478
4 changed files with 7 additions and 20 deletions

View file

@ -62,7 +62,7 @@ const cover = customFeaturedImage || matchedImage_src?.src || firstImageURL || `
<ReplyViaEmail title={entry.data.title} email={authorInfo.email} />
<br>
<a href="/blog">&larr; Back to posts</a>
{!noscript && <h2>Comments</h2> <Comments path={`blog/${slug}`} />}
{!noscript && <h2>Comments</h2> <Comments />}
{!noscript &&
<script>
import "katex/dist/contrib/copy-tex.js"