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

github.com/dillonzq/LoveIt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2022-05-18 20:30:32 +0300
committerDillon <dillonzq@outlook.com>2022-05-18 20:30:32 +0300
commita8ecc6de4e22f214b994271ef8745f61597dee4c (patch)
tree74ed405be0fd268e34fb9cf69363137cdd3cad5d
parentb4f8fa4ee33a4a9ba1e6227fabd982b5b30b8139 (diff)
chore: use plugin/script.html for Plausible Analytics script
-rw-r--r--layouts/partials/plugin/analytics.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/plugin/analytics.html b/layouts/partials/plugin/analytics.html
index 944d3d6a..2c1f4969 100644
--- a/layouts/partials/plugin/analytics.html
+++ b/layouts/partials/plugin/analytics.html
@@ -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 -}}