Start setting up matomo config

This commit is contained in:
Matt Cengia 2022-04-14 14:23:54 +10:00
parent 322b04b15a
commit c71969df40
Signed by: mattcen
GPG Key ID: 652968EE25069D6F
5 changed files with 34 additions and 1 deletions

3
.gitmodules vendored
View File

@ -4,3 +4,6 @@
[submodule "themes/hugo-PaperMod"]
path = themes/hugo-PaperMod
url = https://github.com/adityatelange/hugo-PaperMod
[submodule "themes/matomo"]
path = themes/matomo
url = https://github.com/holehan/hugo-components-matomo.git

View File

@ -3,7 +3,7 @@ languageCode: en-au
title: "mattcen's mumblings"
copyright: Matt Cengia
description: 'Words from a queer, feminist Linux sysadmin/dev/advocate and geek.'
theme: ananke
theme: [ananke, matomo]
#theme: hugo-PaperMod
sectionPagesMenu: main
@ -52,6 +52,17 @@ params:
- name: rss
url: /posts/index.xml
- name: facebook
matomo:
url: "https://example.org"
id: 1
track:
button: "Allow tracking"
message: "You are being watched. The government has a secret system, a machine that spies on you"
block:
button: "Disallow tracking"
message: "You are **not** tracked."
#disableSRI: true
# Config for hugo-PaperMod theme
#showShareButtons: true
#socialIcons:

9
content/privacy.md Normal file
View File

@ -0,0 +1,9 @@
---
title: Privacy
author: mattcen
type: page
date: 2022-04-14T14:20:36+10:00
---
Privacy policy here
{{< matomo-optout >}}

View File

@ -0,0 +1,9 @@
<footer class="{{ .Site.Params.background_color_class | default "bg-black" }} bottom-0 w-100 pa3" role="contentinfo">
<div class="flex justify-between">
<a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="{{ .Site.BaseURL }}" >
&copy; {{ with .Site.Copyright | default .Site.Title }} {{ . | safeHTML }} {{ now.Format "2006"}} {{ end }}
</a>
<div>{{ partial "social-follow.html" . }}</div>
</div>
</footer>
{{ partial "matomo-tracking" }}

1
themes/matomo Submodule

@ -0,0 +1 @@
Subproject commit ddcb4ee2c09517bdd76c175d041f0b3b4868364f