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

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Cai <github@jimmycai.com>2022-01-23 15:59:21 +0300
committerGitHub <noreply@github.com>2022-01-23 15:59:21 +0300
commit6474b9dfd8a5164a191b8aa8f33900e79a2ef0c6 (patch)
tree3b90693b27354fd60077d251b14e2ffc1b819592 /layouts
parent7dc5def2175fbd5021f0109af25202fbb7567757 (diff)
fix(comments): fix cactus comments
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/470
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/comments/provider/cactus.html2
-rw-r--r--layouts/partials/helper/external.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/comments/provider/cactus.html b/layouts/partials/comments/provider/cactus.html
index 8224c8b..ae172d3 100644
--- a/layouts/partials/comments/provider/cactus.html
+++ b/layouts/partials/comments/provider/cactus.html
@@ -1,5 +1,5 @@
{{- with .Site.Params.comments.cactus -}}
-{{- partial "helper/external" (dict "Context" . "Namespace" "Cactus") -}}
+{{- partial "helper/external" (dict "Context" $ "Namespace" "Cactus") -}}
<style>
.cactus-editor-textarea {
diff --git a/layouts/partials/helper/external.html b/layouts/partials/helper/external.html
index e1505d4..88d9525 100644
--- a/layouts/partials/helper/external.html
+++ b/layouts/partials/helper/external.html
@@ -8,7 +8,7 @@
integrity="{{ . }}"
{{- end -}}
crossorigin="anonymous"
- defer="{{ default false .defer }}"
+ {{ if .defer }}defer{{ end }}
>
</script>
{{- else if eq .type "style" -}}