chore: use plugin/script.html for Plausible Analytics script

This commit is contained in:
Dillon 2022-05-19 01:30:32 +08:00
parent b4f8fa4ee3
commit a8ecc6de4e
No known key found for this signature in database
GPG key ID: 0EF4AE57FB98F108

View file

@ -22,6 +22,6 @@
{{- /* Plausible Analytics */ -}}
{{- with $analytics.plausible.dataDomain -}}
<script async defer data-domain="{{ . }}" src="https://plausible.io/js/plausible.js"></script>
{{- dict "Source" "https://plausible.io/js/plausible.js" "Async" true "Defer" true "Attr" ($analytics.plausible.dataDomain | printf `data-domain="%v"`) | partial "plugin/script.html" -}}
{{- end -}}
{{- end -}}