feat: use partial plugin/script.html for comments script
This commit is contained in:
@@ -95,7 +95,7 @@
|
|||||||
{{- if $telegram.outlined -}}
|
{{- if $telegram.outlined -}}
|
||||||
{{- $attr = printf `%v data-outlined="1"` $attr -}}
|
{{- $attr = printf `%v data-outlined="1"` $attr -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<script type="text/javascript" src="https://comments.app/js/widget.js?3" {{ with $attr }} {{ . | safeHTMLAttr }}{{ end }}></script>
|
{{- dict "Source" "https://comments.app/js/widget.js?3" "Defer" true "Attr" $attr | partial "plugin/script.html" -}}
|
||||||
<noscript>
|
<noscript>
|
||||||
Please enable JavaScript to view the comments powered by <a href="https://comments.app/">Telegram Comments</a>.
|
Please enable JavaScript to view the comments powered by <a href="https://comments.app/">Telegram Comments</a>.
|
||||||
</noscript>
|
</noscript>
|
||||||
|
|||||||
Reference in New Issue
Block a user