feat: add giscus support (#92)

* feat: add giscus support #89

* Update comment.html

* Update giscus.html

* Update giscus.html

---------

Co-authored-by: Xin <xin@imfing.com>
This commit is contained in:
Jinuk Im
2023-09-26 20:47:22 +01:00
committed by GitHub
co-authored by Xin
parent 3c4ede96df
commit 6a19ac31c0
7 changed files with 75 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
{{- $commentEnable := site.Params.comment.enable | default false -}}
{{- $commentPageEnable := .Params.comment | default true -}}
{{- if and $commentEnable $commentPageEnable -}}
{{- if eq site.Params.comment.type "giscus" -}}
{{ partial "components/giscus.html" . }}
{{- end -}}
{{- end -}}