mirror of
https://github.com/imfing/hextra.git
synced 2025-06-20 15:31:18 -04:00
docs: add giscus comments system (#96)
* chore: rename comment to comments * docs: add giscus comments * docs: update
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{{- $lang := site.Language.LanguageCode | default `en` -}}
|
||||
|
||||
{{- with site.Params.comment.giscus -}}
|
||||
{{- with site.Params.comments.giscus -}}
|
||||
<script>
|
||||
/*
|
||||
* "preferred color scheme" theme in giscus works using "prefers-color-scheme" in media query.
|
||||
@ -57,4 +57,6 @@
|
||||
</script>
|
||||
|
||||
<div id="giscus"></div>
|
||||
{{- else -}}
|
||||
{{ warnf "giscus is not configured" }}
|
||||
{{- end -}}
|
||||
|
Reference in New Issue
Block a user