diff --git a/README.md b/README.md index 916ed2c..a893c33 100644 --- a/README.md +++ b/README.md @@ -166,6 +166,10 @@ If you want to enable a dark appearance, there is limited support for that. Curr | `[params]` - `RSSMicropostTitles` | `true` or `false` | No. If false, Microposts RSS feeds will not have the title in included posts. If not present or true, nothing happens. | | `[params]` - `YearlyMicroposts` | `true` or `false` | No. If true, Microposts will have a page with a yearly grouping just like the posts. If not present or false, the default of not having a micropost yearly grouping is applied. | | `[params]` - `SummarizeMicroposts` | `true` or `false` | No. If true, Microposts will be summarized in the main list just like posts with a continue reading link. If not present or false, the default of not summarizing microposts is applied. | +| `[params]`- `umamienabled` | `true` or `false` | No. If true and the the following umami-parameters are set, activate umami website analytics. | +| `[params]`- `umamiurl` | `Your Umami-URL`| No. i.e. `https://analytics.example.com/`. Please add the trailing slash at the end. | +| `[params]`- `umamisrihash` | `SRI hash` | No. Generate your SRI hash for your complete Umami-URL (incl. script.js). You can do this here: [https://www.srihash.org/](https://www.srihash.org/). | +| `[params]`- `umamiid` | `Umami Website ID` | No. Add Your Umami-Website ID to this variable | Here is an example `hugo.toml`: @@ -190,6 +194,10 @@ SectionPagesMenu = "main" ShowCopyright = true RSSEnabled = true RSSSections = [ "Posts", "Microposts", "Photos" ] + umamienabled = true + umamiurl = "https://analytics.example.com" + umamisrihash = "xyz" + umamiid = "xxxxxxxxxxxxxxxxxxx-yyyyyyyyyy-zzzzzzzzzzzzz" [taxonomies] tag = "tags" diff --git a/layouts/partials/site_footer.html b/layouts/partials/site_footer.html index 370c2e0..ef497ea 100644 --- a/layouts/partials/site_footer.html +++ b/layouts/partials/site_footer.html @@ -3,6 +3,5 @@ {{ partial "custom_javascript.html" . }} {{ partial "custom_image_handler.html" . }} - {{ template "_internal/google_analytics.html" . }} diff --git a/layouts/partials/site_header.html b/layouts/partials/site_header.html index 7cd3cca..b6b3b58 100644 --- a/layouts/partials/site_header.html +++ b/layouts/partials/site_header.html @@ -39,6 +39,8 @@ {{ if .Site.Params.rssenabled }} {{ end }} - + {{ if .Site.Params.umamienabled }} + + {{ end }}