website/layouts/partials/plausible.html

11 lines
295 B
HTML

{{ if .Site.Params.plausibleScriptUrl }}
{{ if .Site.Params.plausibleDomain }}
<script
async
defer
data-domain="{{ .Site.Params.plausibleDomain }}"
src="{{ .Site.Params.plausibleScriptUrl }}"
></script>
{{ end }}
{{ end }}