forked from drowl87/hextra_mirror
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:
8
layouts/partials/components/comment.html
Normal file
8
layouts/partials/components/comment.html
Normal 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 -}}
|
Reference in New Issue
Block a user