diff --git a/.gitmodules b/.gitmodules
index 2693c75..0042e74 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,6 @@
[submodule "themes/bar-filipo.de-theme"]
path = themes/bar-filipo.de-theme
url = git@git.oxygin.net:jsauer/bar-filipo.de-theme.git
+[submodule "themes/plausible-hugo"]
+ path = themes/plausible-hugo
+ url = https://github.com/divinerites/plausible-hugo.git
diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml
index a7556d9..b5a3908 100644
--- a/config/_default/hugo.toml
+++ b/config/_default/hugo.toml
@@ -3,7 +3,7 @@
## -----------------------------------------------
title = 'Bar Filipo'
-theme = "bar-filipo.de-theme"
+theme = ['bar-filipo.de-theme', 'plausible-hugo']
copyright = "2024"
## -----------------------------------------------
@@ -42,3 +42,10 @@ disableKinds = ["taxonomy", "section"]
[Params.privacy]
url = "datenschutz"
label = "Datenschutz"
+
+[Params.plausible]
+ enable = true
+ domain = "bar-filipo.de"
+ selfhosted_domain = "plausible.oxygin.net"
+ gitstar = false
+ outbound_link = true
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index f8b748b..b4eec31 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -4,10 +4,10 @@
{{ with .Site.Params.social.github }}- Github
{{end}}
{{ with .Site.Params.social.twitter }}- Twitter
{{end}}
- {{ with .Site.Params.social.instagram }}- Instagram
{{end}}
+ {{ with .Site.Params.social.instagram }}- Instagram
{{end}}
{{ with .Site.Params.social.linkedin }}- LinkedIn
{{end}}
- {{ with .Site.Params.social.email }}- Email
{{end}}
- {{ with .Site.Params.social.whatsapp }}- WhatsApp
{{end}}
+ {{ with .Site.Params.social.email }}- Email
{{end}}
+ {{ with .Site.Params.social.whatsapp }}- WhatsApp
{{end}}
{{ with .Site.Params.imprint }}
{{ .label }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
new file mode 100644
index 0000000..f566908
--- /dev/null
+++ b/layouts/partials/head.html
@@ -0,0 +1,43 @@
+
+ {{ .Site.Title }}
+
+
+
+
+ {{ if .Site.Params.favicon }}
+ {{ partial "favicon" }}
+ {{ end }}
+
+
+ {{ $opts := dict "targetPath" "css/main.css" "enableSourceMap" (not hugo.IsProduction) }}
+ {{ $sass := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "css/main.scss" . | toCSS $opts }}
+ {{ $css := resources.Match "css/*.css" | resources.Concat "css/bundle.css" }}
+ {{ with slice $sass $css | resources.Concat "css/main.css" }}
+ {{ if hugo.IsDevelopment }}
+
+ {{ else }}
+ {{ with . | minify | fingerprint }}
+
+ {{ end }}
+ {{ end }}
+ {{ end }}
+
+ {{ with resources.Get "sass/noscript.scss" }}
+ {{ $opts := dict "targetPath" "css/noscript.css" "enableSourceMap" (not hugo.IsProduction) }}
+ {{ with . | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS $opts }}
+ {{ if hugo.IsDevelopment }}
+
+ {{ else }}
+ {{ with . | minify | fingerprint }}
+
+ {{ end }}
+ {{ end }}
+ {{ end }}
+ {{ end }}
+
+ {{ partial "plausible_head.html" . }}
+
diff --git a/layouts/partials/plausible_js.html b/layouts/partials/plausible_js.html
new file mode 100644
index 0000000..23da253
--- /dev/null
+++ b/layouts/partials/plausible_js.html
@@ -0,0 +1,9 @@
+function ClickOnInstagram() {
+ plausible('Instagram');
+}
+function ClickOnMail() {
+ plausible('Mail');
+}
+function ClickOnWhatsApp() {
+ plausible('WhatsApp');
+}
diff --git a/themes/plausible-hugo b/themes/plausible-hugo
new file mode 160000
index 0000000..156a047
--- /dev/null
+++ b/themes/plausible-hugo
@@ -0,0 +1 @@
+Subproject commit 156a0478888cf1fe23d8f65b98e122865770d2d6