commit
901df3239e
@ -16,6 +16,7 @@ Anubis is a simple minimalist theme for [Hugo blog engine](https://gohugo.io/).
|
||||
- Mobile support
|
||||
- Social icons
|
||||
- Google Analytics
|
||||
- Umami Analytics
|
||||
- Comment systems: Disqus, ISSO, Utteranc.es, GraphComment
|
||||
- RSS feeds
|
||||
- Related posts (Read Next section)
|
||||
@ -120,6 +121,12 @@ params:
|
||||
avatar: true # optional
|
||||
avatar-bg: "#f0f0f0" # optional
|
||||
feed: false # optional
|
||||
UmamiAnalytics:
|
||||
enabled: true # mandatory
|
||||
dnt: true # optional
|
||||
id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # mandatory
|
||||
datacache: false # optional
|
||||
url: "https://abc.example.com/umami.js" # mandatory
|
||||
graphcommentId: ""
|
||||
webmentions:
|
||||
url: https://yourdomain.com/webemntions/receive
|
||||
|
@ -72,4 +72,8 @@
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ if (.Site.Params.UmamiAnalytics.enabled ) }}
|
||||
{{ partial "umami_analytics.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ partial "head-extra.html" . }}
|
||||
|
3
layouts/partials/umami_analytics.html
Normal file
3
layouts/partials/umami_analytics.html
Normal file
@ -0,0 +1,3 @@
|
||||
{{ $dnt := .Site.Params.UmamiAnalytics.dnt | default "false" }}
|
||||
{{ $datacache := .Site.Params.UmamiAnalytics.datacache | default "false" }}
|
||||
<script async defer data-website-id="{{ .Site.Params.UmamiAnalytics.id }}" data-cache="{{ $datacache }}" data-do-not-track="{{ $dnt }}" src="{{ .Site.Params.UmamiAnalytics.url }}"></script>
|
Loading…
Reference in New Issue
Block a user