From 2d61243ef1e8242f679a3e5c71fe35e0ef0a491e Mon Sep 17 00:00:00 2001 From: xing Date: Sun, 30 Apr 2023 21:33:59 +0800 Subject: [PATCH] fix bug --- internal/theme/twentyseventeen/twentyseventeen.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/theme/twentyseventeen/twentyseventeen.go b/internal/theme/twentyseventeen/twentyseventeen.go index e5e32bf..5c163ea 100644 --- a/internal/theme/twentyseventeen/twentyseventeen.go +++ b/internal/theme/twentyseventeen/twentyseventeen.go @@ -67,6 +67,7 @@ func configs(h *wp.Handle) { wp.NewHandleFn(wp.PreTemplate, 70, "wp.PreTemplate"), wp.NewHandleFn(errorsHandle, 80, "errorsHandle"), ) + h.Detail.CommentRender = commentFormat h.CommonComponents() h.Index.SetPageEle(paginate) wp.ReplyCommentJs(h) @@ -127,7 +128,6 @@ func detail(h *wp.Handle) { img.Srcset = fmt.Sprintf("%s %dw, %s", img.Path, img.Width, img.Srcset) d.Post.Thumbnail = img } - d.CommentRender = commentFormat } var commentFormat = comment{}