Skip to content

Commit

Permalink
feat: privacy-respecting self-hosted analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob committed Sep 26, 2023
1 parent a777d42 commit 468b9c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
baseURL = "https://geeklaunch.io"
copyright = "Jacob Lindahl"
defaultContentLanguage = "en"
disableKinds = ["taxonomy", "taxonomyTerm"]
disableKinds = ["taxonomy"]
hasCJKLanguage = true
ignoreFiles = ["\\.psd$"]
languageCode = "en-us"
Expand All @@ -17,6 +17,10 @@ mastodon = "geeklaunch@techhub.social"
twitter = "Geek_Launch"
youtube = "GeekLaunch"

[params.plausible]
host = "plausible.c0d3r.dev"
domain = "geeklaunch.io"

[markup.goldmark.renderer]
unsafe = true

Expand Down
5 changes: 5 additions & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
<meta name="author" content="{{ site.Author.name }}" />
{{ end }}

{{ if isset site.Params "plausible" }}
<script defer data-domain="{{ site.Params.plausible.domain }}"
src="https://{{ site.Params.plausible.host }}/js/script.js"></script>
{{ end }}

{{ range .AlternativeOutputFormats -}}
{{ printf `
<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
Expand Down

0 comments on commit 468b9c0

Please sign in to comment.