summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/partials/comments.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index a8f5079..41ed835 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -63,7 +63,9 @@
<div class="single-content">
{{ .Content }}
+ {{ if .Site.Params.giscus.enable }}
{{ partial "comments.html" . }}
+ {{ end }}
</div>
{{/* Next prev controls */}}
diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html
index cbc7d6c..29b6f93 100644
--- a/layouts/partials/comments.html
+++ b/layouts/partials/comments.html
@@ -1,4 +1,3 @@
-{{ if .Site.Params.giscus.enable }}
<script src="https://giscus.app/client.js"
data-repo="{{ .Site.Params.giscus.repo }}"
data-repo-id="{{ .Site.Params.giscus.repoid }}"
@@ -14,5 +13,4 @@
data-loading="lazy"
crossorigin="anonymous"
async>
- </script>
-{{ end }} \ No newline at end of file
+</script>