athul / archie

A minimal Hugo Theme
https://athul.github.io/archie
MIT License
977 stars 299 forks source link

Issue with google analytics #109

Open sean-smith opened 3 months ago

sean-smith commented 3 months ago

Hi,

I'm getting the following error when setting up a new computer:

ERROR render of "taxonomy" failed: "/Users/seaam/projects/swsmith.cc/themes/archie/layouts/_default/baseof.html:8:12": execute of template failed: template: _default/terms.html:8:12: executing "_default/terms.html" at <partial "footer.html" .>: error calling partial: execute of template failed: html/template:partials/footer.html:18:14: no such template "_internal/google_analytics_async.html"
$ hugo version
hugo v0.125.7+extended darwin/arm64 BuildDate=2024-05-08T14:46:24Z VendorInfo=brew

This PR https://github.com/athul/archie/pull/108 looks related.

sean-smith commented 3 months ago

Ok, I was able to fix this, for those wondering here's what I did:

cd theme/archie
git checkout master
git pull

I also had an override for footer.html which I needed to change `

{{ if not .Site.IsServer }}
{{ template "_internal/google_analytics_async.html" . }}
{{ end }}

to

{{ if not .Site.IsServer }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}