I decided to work on my site the other day and when tried to run hugo server, I got this error:
ERROR render of "page" failed: execute of template failed: html/template:_default/single.html:44:14: no such template "_internal/google_analytics_async.html"
ERROR render of "term" failed: execute of template failed: html/template:_default/list.html:44:14: no such template "_internal/google_analytics_async.html"
Total in 64 ms
Error: error building site: render: failed to render pages: render of "home" failed: execute of template failed: html/template:index.html:44:14: no such template "_internal/google_analytics_async.html"
I figured that updating the theme would fix the issue. I ran git submodule update --remote --merge to update the theme, but I’m still getting the render error. Any ideas? I’m using Hugo 0.128.2.
The theme has been updated already and using the current version won’t throw the error.
I would not remove that code, but merge theme changes back to your customization.
you customized the delivered baseof.html by overriding it in your own layouts folder.
you local copies of files won’t be updated when updating the theme
whenever you update the theme you will have to reapply the theme changes to your copy
hint:
You have two more themes in your themes folder (directly committed not as submodule)
maybe you want to remove that to keep your repo clean in case they are not needed anymore