diff --git a/README.md b/README.md index c78b616..2a5ac0b 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,10 @@ summaryLength = 70 # number of words for article summaries plausibleScriptUrl = "https://something.com/..." plausibleDomain = "example.com" + # enable analytics using Umami + umamiScriptUrl = "https://something.com/..." + umamiWebsiteId = "example-tracking-code" + enableShareOnFediverse = false # enable a button at the end of an article to share it on the fediverse tocBeforeImage = false # show the table of contents before the main article image; default false diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ec073c1..5d2b506 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -14,6 +14,7 @@ {{- partial "plausible.html" . -}} + {{- partial "umami.html" . -}} {{- partial "inject/body.html" . -}} diff --git a/layouts/partials/umami.html b/layouts/partials/umami.html new file mode 100644 index 0000000..2890627 --- /dev/null +++ b/layouts/partials/umami.html @@ -0,0 +1,10 @@ +{{ if .Site.Params.umamiScriptUrl }} + {{ if .Site.Params.umamiWebsiteId }} + + {{ end }} +{{ end }}