From ab80866c7d592084a171d8de3d3a9e8a0a0fb3e3 Mon Sep 17 00:00:00 2001 From: wwwatson Date: Wed, 13 Sep 2023 20:15:14 +0800 Subject: [PATCH] feat: add giscus comment --- layouts/_default/single.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 14dc536..78b9b2f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -100,6 +100,27 @@ })(); {{ end }} + + + {{ if and site.Params.giscus.repo (not (eq .Params.comments false)) }} +
+ + {{ end }} {{ end }}