fix(comments): fix cactus comments

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/470
This commit is contained in:
Jimmy Cai 2022-01-23 12:59:21 +00:00 committed by GitHub
parent 7dc5def217
commit 6474b9dfd8
3 changed files with 3 additions and 4 deletions

View File

@ -41,7 +41,6 @@ Cactus:
- src: https://latest.cactus.chat/cactus.js - src: https://latest.cactus.chat/cactus.js
integrity: integrity:
type: script type: script
defer: false
- src: https://latest.cactus.chat/style.css - src: https://latest.cactus.chat/style.css
integrity: integrity:
type: style type: style

View File

@ -1,5 +1,5 @@
{{- with .Site.Params.comments.cactus -}} {{- with .Site.Params.comments.cactus -}}
{{- partial "helper/external" (dict "Context" . "Namespace" "Cactus") -}} {{- partial "helper/external" (dict "Context" $ "Namespace" "Cactus") -}}
<style> <style>
.cactus-editor-textarea { .cactus-editor-textarea {

View File

@ -8,7 +8,7 @@
integrity="{{ . }}" integrity="{{ . }}"
{{- end -}} {{- end -}}
crossorigin="anonymous" crossorigin="anonymous"
defer="{{ default false .defer }}" {{ if .defer }}defer{{ end }}
> >
</script> </script>
{{- else if eq .type "style" -}} {{- else if eq .type "style" -}}