diff options
| author | Francesco Tomaselli <tomaselli.fr@gmail.com> | 2025-01-01 18:13:11 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-01 18:13:11 +0100 | 
| commit | 581742aa04eaa546208d4f50b026753977eefc35 (patch) | |
| tree | c35d525a45533a0fc2603914967bfc4b3b2c42b7 | |
| parent | 9c217bd883c6b6179e3b35038a9b1788d0077466 (diff) | |
| parent | be6a3dd6c77fd0581fac383d67c4bbe7d86c5a45 (diff) | |
Merge pull request #59 from Senophyx/main
Adding parameter `disableComment` to disable Giscus comment on specific post.
| -rw-r--r-- | layouts/_default/single.html | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 308ee5b..159c328 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -66,8 +66,10 @@    <div class="single-content">      {{ .Content }}      {{ if .Site.Params.giscus.enable }} +    {{ if not .Params.disableComment }}      {{ partial "comments.html" . }}      {{ end }} +    {{ end }}    </div>    {{ if .Store.Get "hasMermaid" }} | 
