forked from drowl87/hextra_mirror

* feat: add giscus support #89 * Update comment.html * Update giscus.html * Update giscus.html --------- Co-authored-by: Xin <xin@imfing.com>
9 lines
301 B
HTML
9 lines
301 B
HTML
{{- $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 -}}
|