fix: comment not displayed when no client javascript is disabled

This commit is contained in:
草师傅 2025-07-10 18:19:31 +08:00
parent d6e1a9dd94
commit a20aef1d6e
Signed by: gb
GPG key ID: 43330A030E2D6478

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 path={`blog/${slug}`} />}
{!noscript &&
<script>
import "katex/dist/contrib/copy-tex.js"