From e331f6711d22163cb1e9eceffbd5c7cdd38f98e1 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Thu, 28 Mar 2024 11:12:14 +1300 Subject: [PATCH] add Umami analytics (#15) This requires using a fork of the theme, since https://github.com/imfing/hextra/pull/328 isn't merged yet. --- go.mod | 4 ++++ go.sum | 4 ++-- hugo.yaml | 4 ++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 517fc85..bc877a6 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,8 @@ module github.com/quic-go/docs go 1.22.0 +// Using the fork is only needed until the PR adding support for Umami is merged: +// https://github.com/imfing/hextra/pull/328 +replace github.com/imfing/hextra => github.com/marten-seemann/hextra v0.0.0-20240321085151-430a25fbf9d1 + require github.com/imfing/hextra v0.7.3 // indirect diff --git a/go.sum b/go.sum index ad0bc42..0f2fe43 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -github.com/imfing/hextra v0.7.3 h1:dVGA1NTcWe+FaUMdrawEypPfrrmulq5NoK0we3nC330= -github.com/imfing/hextra v0.7.3/go.mod h1:cEfel3lU/bSx7lTE/+uuR4GJaphyOyiwNR3PTqFTXpI= +github.com/marten-seemann/hextra v0.0.0-20240321085151-430a25fbf9d1 h1:GexfSlfqrqx3u/MS8P03u8KjaWMAfH23Afk63MhINJ8= +github.com/marten-seemann/hextra v0.0.0-20240321085151-430a25fbf9d1/go.mod h1:cEfel3lU/bSx7lTE/+uuR4GJaphyOyiwNR3PTqFTXpI= diff --git a/hugo.yaml b/hugo.yaml index 8ef7b9c..c672f7e 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -53,3 +53,7 @@ params: editURL: enable: true base: "https://github.com/quic-go/docs/tree/master/content" + umami: + serverURL: "analytics.seemann.io" + id: "c8e5d798-f535-4fea-906f-93da2e05a771" + trackerScriptName: "script.js"