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

github.com/de-souza/hugo-flex.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.html10
1 files changed, 2 insertions, 8 deletions
diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html
index e196e45..ee5b23e 100644
--- a/layouts/partials/comments.html
+++ b/layouts/partials/comments.html
@@ -1,11 +1,5 @@
-{{if eq .Type "posts" }}
{{ with .Site.Params.utterances }}
-<script src="https://utteranc.es/client.js"
- repo="{{ .repo }}"
- issue-term="{{ .issueterm }}"
- theme="{{ .theme }}"
- crossorigin="{{ .crossorigin }}"
- async>
-</script>
+{{ if in site.Params.mainSections $.Type | and .enable }}
+<script src="https://utteranc.es/client.js" repo="{{ .repo }}" issue-term="{{ .issueterm }}" theme="{{ .theme }}" crossorigin="anonymous" async></script>
{{end}}
{{end}} \ No newline at end of file