Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/comments.html')
-rw-r--r--layouts/partials/comments.html20
1 files changed, 19 insertions, 1 deletions
diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html
index 3cc1645..c5e2a50 100644
--- a/layouts/partials/comments.html
+++ b/layouts/partials/comments.html
@@ -1,5 +1,23 @@
{{- if .Site.DisqusShortname }}
- <div class="disqus">
+ <div class="container disqus">
{{ template "_internal/disqus.html" . }}
</div>
{{- end }}
+
+{{- if .Site.Params.giscus.repo }}
+<div class="container giscus my-4">
+ <script src="https://giscus.app/client.js"
+ data-repo={{ .Site.Params.giscus.repo }}
+ data-repo-id={{ .Site.Params.giscus.repo_id }}
+ data-category={{ .Site.Params.giscus.category }}
+ data-category-id={{ .Site.Params.giscus.category_id }}
+ data-mapping={{ .Site.Params.giscus.mapping }}
+ data-reactions-enabled={{ .Site.Params.giscus.reactions_enabled | default 0}}
+ data-emit-metadata={{ .Site.Params.giscus.emit_metadata | default 0 }}
+ data-theme={{ .Site.Params.giscus.theme }}
+ data-lang={{ .Site.Params.giscus.lang }}
+ crossorigin="anonymous"
+ async>
+ </script>
+</div>
+{{- end }}