From 40f4c2d4223905de26809dd9f6212acb0f297a1e Mon Sep 17 00:00:00 2001 From: Oscar Aurin Date: Fri, 19 Apr 2024 08:01:06 +0200 Subject: [PATCH 1/2] Fix compatibility with Hugo v0.125.0 `google_analytics_async.html` is now removed from Hugo and the regular template should be used. Hugo pull-request: [#12299](https://github.com/gohugoio/hugo/pull/12299) Without this change, it is not possible to build with Hugo v0.125.0 or later. --- layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index b453bff..b84cd91 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -11,7 +11,7 @@ {{ if not .Site.IsServer }} -{{ template "_internal/google_analytics_async.html" . }} +{{ template "_internal/google_analytics.html" . }} {{ end }} {{- if (isset .Site.Params "social") -}} From 928cc0f63fd9dda53de9ace7c0dc071117de387e Mon Sep 17 00:00:00 2001 From: 0ge Date: Sat, 20 Apr 2024 20:44:49 +0200 Subject: [PATCH 2/2] Update readme with potential GA issue in Hugo prior to v0.125.0 --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index a2aef29..ef3e4d6 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,9 @@ $ git clone https://github.com/athul/archie.git Edit the `config.toml` file with `theme="archie"` For more information read the official [setup guide](https://gohugo.io/installation/) of Hugo. +If you encounter any issues with Google Analytics, update Hugo to v0.125.0 or +later and make sure your using the latest version of the theme. + ## Writing Posts Create a new `.md` file in the *content/posts* folder ```yml