From c3622ae53d90acb344feb45ff754cae9273fa935 Mon Sep 17 00:00:00 2001 From: Lovro Oreskovic Date: Mon, 2 Jan 2023 22:08:37 +0100 Subject: [PATCH] add umami analytics --- README.md | 12 ++++++++++++ layouts/partials/head.html | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/README.md b/README.md index 5fa97e609..ac42e073a 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ It pairs a prominent sidebar with uncomplicated content. - [Reverse layout](#reverse-layout) - [Disqus](#disqus) - [Google Analytics](#google-analytics) + - [Umami Analytics](#umami-analytics) - [Author](#author) - [Ported by](#ported-by) - [License](#license) @@ -202,6 +203,17 @@ googleAnalytics = "Your tracking code" googleAnalytics: Your tracking code ``` +## Umami Analytics + +If using [umami-analytics](https://umami.is/) add the following lines to your config.toml file: + +```toml +[params.umami] + enabled = true + dataWebsiteId="your-web-site-id" + src="https://analytics.umami.is/script.js" +``` + ## Author **Mark Otto** - diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 56a31572d..f0e1ab984 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -20,6 +20,12 @@ + + + {{ if .Site.Params.Umami.Enabled -}} + + {{- end }} + {{ partial "head_fonts.html" . }}