Skip to content

Commit

Permalink
Adds Plausible into site. (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymatthews authored Jul 25, 2024
1 parent b877c12 commit e3c762e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ params:
theme:
default: system
displayToggle: true

plausibleAnalytics: true
6 changes: 6 additions & 0 deletions themes/hextra/layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,9 @@
});
</script>
{{ end }}


{{/* Plausible Analytics */}}
{{ if site.Params.plausibleAnalytics }}
<script defer data-domain="docs.entropy.xyz" src="https://plausible.io/js/script.js"></script>
{{ end }}

0 comments on commit e3c762e

Please sign in to comment.