Files
Documentation/themes/hextra/layouts/_partials/components/comments.html
2026-01-20 20:33:59 +01:00

12 lines
314 B
HTML

{{- $enableComments := site.Params.comments.enable | default false -}}
{{ if not (eq .Params.comments nil) }}
{{ $enableComments = .Params.comments }}
{{ end }}
{{- if $enableComments -}}
{{- if eq site.Params.comments.type "giscus" -}}
{{ partial "components/giscus.html" . }}
{{- end -}}
{{- end -}}