From 7c899182b97f9ff06851dbd3c6115bbd28c4fd27 Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Sat, 31 Jan 2026 00:57:07 +0800 Subject: feat: new comment area Former-commit-id: a73e0b8439763fca242322d228ead3c800504ced --- layouts/_partials/posts/comment.html | 43 ++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 24 deletions(-) (limited to 'layouts/_partials/posts/comment.html') diff --git a/layouts/_partials/posts/comment.html b/layouts/_partials/posts/comment.html index e4ec9b3e..bcd0b17b 100644 --- a/layouts/_partials/posts/comment.html +++ b/layouts/_partials/posts/comment.html @@ -1,8 +1,3 @@ - -

- *{{ T "emailMe" }} {{ .Site.Params.email }} -

- {{ $cutoffDate := time.AsTime "2026-01-30" }} {{ if .Params.Date.Before $cutoffDate }} - -

博客的评论区已经被禁用,旧的数据已经导出,如果存在,就会显示在下方。如果你想要讨论此文,可以邮件联系,或者在联邦宇宙上互动。

- -
- {{ $giscusData := .Site.Data.giscus }} {{ $pageTitle := .Title }} {{ range $giscusData }} {{ if eq .title $pageTitle }} + {{ $url := .url }} {{ with .comments.nodes }} -
- {{ range . }} -
-
- {{ .author.login }} - {{ .createdAt | time.Format "2006/01/02" }} +
+ 博客的评论区已经被禁用,旧的数据已经导出,可以点击这行字查看。 +
+ {{ range . }} +
+
+ {{ .author.login }} + {{ .createdAt | time.Format "2006/01/02" }} +
+
+ {{ .body | markdownify }} +
-
- {{ .body | markdownify }} -
-
+ {{ end }} +
+ {{ with $url }} +

Full GitHub Discussion →

{{ end }} -
- {{ end }} - {{ with .url }} -

Full GitHub Discussion →

+
+ {{ end }} {{ end }} {{ end }} -- cgit v1.2.3