From 79ea7a31bc8ad6038405832d0aefe76802ca5ccd Mon Sep 17 00:00:00 2001 From: Eltrac Date: Wed, 26 Feb 2025 14:23:21 +0800 Subject: feat: add static comments to post page --- layouts/partials/components/comment.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'layouts') diff --git a/layouts/partials/components/comment.html b/layouts/partials/components/comment.html index 8f66fbbc..ac39723a 100644 --- a/layouts/partials/components/comment.html +++ b/layouts/partials/components/comment.html @@ -1,5 +1,26 @@ {{ if in .Site.Params.mainSections .Type }}
+ {{ with .Params.comments }} +
+

{{ T "postPage.staticCommentsSectionHeader" }}

+ {{ range . }} +
+
+ {{ .name }} + {{ .date }} +
+
+ {{ .content | safeHTML }} +
+ +
+ {{ end }} +
+ {{ end }}

{{ T "postPage.commentNotLoaded" }} -- cgit v1.2.3