Skip to content

Commit

Permalink
feat: add the script_url parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Oct 13, 2024
1 parent 54f23f4 commit d281535
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[params.hugopress.modules.umami.hooks.head-end]
cacheable = true
cache_param_key = "analyze"

[params.services.umami]
script_url = "https://cloud.umami.is/script.js"
6 changes: 5 additions & 1 deletion layouts/partials/hugomods/umami/assets/js.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{{- with site.Params.services.umami.id }}
<script defer src="https://cloud.umami.is/script.js" data-website-id="{{ . }}"></script>
<script
defer
src="{{ site.Params.services.umami.script_url }}"
data-website-id="{{ . }}">
</script>
{{- end }}

0 comments on commit d281535

Please sign in to comment.