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
integrity:
type: script
defer: false
- src: https://latest.cactus.chat/style.css
integrity:
type: style

View file

@ -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 {

View file

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