* added parametrized umami-integration

* eliminated google analytics
* added umami-integration to README.md
This commit is contained in:
Stephan Hadan 2025-01-29 08:44:27 +01:00
parent 9650d9fd12
commit 8e13216a1d
3 changed files with 11 additions and 2 deletions

View file

@ -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"