From 10431bd8f5ff71690ae4e5444e8d7894fd401ae5 Mon Sep 17 00:00:00 2001 From: eltrac Date: Tue, 7 Apr 2026 14:53:17 +0800 Subject: chore: move templates out of site repo --- layouts/_partials/posts/comment.html | 38 ------------------------------------ 1 file changed, 38 deletions(-) delete mode 100644 layouts/_partials/posts/comment.html (limited to 'layouts/_partials/posts/comment.html') diff --git a/layouts/_partials/posts/comment.html b/layouts/_partials/posts/comment.html deleted file mode 100644 index 90757781..00000000 --- a/layouts/_partials/posts/comment.html +++ /dev/null @@ -1,38 +0,0 @@ - -{{ $cutoffDate := time.AsTime "2026-01-30" }} -{{ if .Params.Date.Before $cutoffDate }} - {{ $giscusData := hugo.Data.giscus }} - {{ $pageTitle := .Title }} - {{ range $giscusData }} - {{ if eq .title $pageTitle }} - {{ $url := .url }} - {{ with .comments.nodes }} -
- 博客的评论区已经被禁用,旧的数据已经导出,可以点击这行字查看。 -
- {{ range . }} -
-
- {{ .author.login }} - {{ .createdAt | time.Format "2006/01/02" }} -
-
- {{ .body | markdownify }} -
-
- {{ end }} -
- {{ with $url }} -

Full GitHub Discussion →

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