Skip to content

Commit 0539df5

Browse files
author
marci
committed
Füge Umami-Analytics-Integration mit aktualisierten Parametern hinzu
1 parent 367a8f0 commit 0539df5

4 files changed

Lines changed: 19 additions & 11 deletions

File tree

go.mod

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ module github.com/securebitsorg/securebitsorg.github.io
22

33
go 1.24.4
44

5-
require github.com/hugo-toha/toha/v4 v4.9.0 // indirect
5+
require (
6+
github.com/hugo-toha/toha/v4 v4.9.0 // indirect
7+
github.com/hugomods/umami-analytics v0.3.1 // indirect
8+
)

go.sum

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
github.com/hugo-toha/toha/v4 v4.9.0 h1:FX5i3I7eP/lpAQZv4SjnKw5jw0aowCFBGjc+pW1W6PA=
2-
github.com/hugo-toha/toha/v4 v4.9.0/go.mod h1:TU/6WXz7fJ3BSrTS+K/sVctzUMF4pB4ZwKWzFBFra8g=
2+
github.com/hugo-toha/toha/v4 v4.9.0/go.mod h1:TU/6WXz7fJ3BSrTS+K/sVctzUMF4pB4ZwKWzFBFra8g=
3+
github.com/hugomods/umami-analytics v0.3.1 h1:C4B1oKRBvCRamH3muiWK+QNbehmxd+7DiK80jHCdMJo=
4+
github.com/hugomods/umami-analytics v0.3.1/go.mod h1:nlZGLPH5L+H25+HwmuzHsEfM869+tMTUTcSUBcOQEm4=

hugo.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ caches:
3333
module:
3434
imports:
3535
- path: github.com/hugo-toha/toha/v4
36+
- path: github.com/hugomods/umami-analytics
3637
mounts:
3738
- source: static/files
3839
target: static/files
@@ -123,7 +124,7 @@ outputs:
123124
home:
124125
- HTML
125126
- RSS
126-
- JSON
127+
- JSON- path: github.com/hugomods/umami-analytics
127128

128129
imaging:
129130
anchor: Smart
@@ -150,14 +151,13 @@ lazyload:
150151
# Site parameters
151152

152153
params:
153-
analytics:
154-
enable: true
155-
services:
156-
# Enable Umami analytics
157-
umami:
158-
scheme: https
159-
instance: analytics.eu.umami.is
160-
id: 1076f380-33de-4ef4-a7ee-4e3648dcb8fa
154+
services:
155+
umami_analytics:
156+
id: 1076f380-33de-4ef4-a7ee-4e3648dcb8fa
157+
# URL of your Umami Analytics instance
158+
script_url: https://cloud.umami.is/script.js
159+
# Site ID for your Umami Analytics instance
160+
161161

162162

163163
# Background image of the landing page

layouts/_partipals/head.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<head>
2+
{{ partialCached "hugomods/umami-analytics/index" . .Params.analyze }}
3+
</head>

0 commit comments

Comments
 (0)