add support for giscus with an unsolved bug, good night :(

This commit is contained in:
Mivinci 2022-11-09 01:19:04 +08:00
parent 3b6079c2a5
commit 43fdd9cb18
3 changed files with 52 additions and 8 deletions

View file

@ -35,17 +35,23 @@
{{ end }}
{{ if or .Params.comment (and .Site.Params.commentOnAllPosts (ne .Params.comment false)) }}
{{ if eq .Site.Params.comment "disqus"}}
{{ partial "disqus.html" . }}
{{ end }}
{{ if eq .Site.Params.comment "ovo"}}
{{ partial "ovo.html" . }}
{{ end }}
{{ if eq .Site.Params.comment "utterances"}}
{{ partial "utterances.html" . }}
{{ end }}
{{ if eq .Site.Params.comment "giscus" }}
{{ partial "giscus.html" }}
{{ end }}
{{ if eq .Site.Params.comment "ovo"}}
{{ partial "ovo.html" . }}
{{ end }}
{{ end }}
</div>
{{ end }}