added support for plausible analytics
This commit is contained in:
parent
87b54d99c1
commit
25cf285710
3 changed files with 15 additions and 0 deletions
|
|
@ -9,5 +9,6 @@
|
|||
</main>
|
||||
{{- partial "footer.html" . -}}
|
||||
</div>
|
||||
{{- partial "plausible.html" . -}}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
10
layouts/partials/plausible.html
Normal file
10
layouts/partials/plausible.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{{ if .Site.Params.plausibleScriptUrl }}
|
||||
{{ if .Site.Params.plausibleDomain }}
|
||||
<script
|
||||
async
|
||||
defer
|
||||
data-domain="{{ .Site.Params.plausibleDomain }}"
|
||||
src="{{ .Site.Params.plausibleScriptUrl }}"
|
||||
></script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue