Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with google analytics #109

Open
sean-smith opened this issue May 20, 2024 · 1 comment
Open

Issue with google analytics #109

sean-smith opened this issue May 20, 2024 · 1 comment

Comments

@sean-smith
Copy link

sean-smith commented May 20, 2024

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 #108 looks related.

@sean-smith
Copy link
Author

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 }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant