First time user getting only errors

Hello there,
This is first time time. I tried searching though the topics but I haven’t found what concerns my case.
This is my first time using HUGO and as such, I followed the example listed on the site.
Platform: Ubuntu 24.04.
I followed the instructions and used the Theme NewBee.

Everything goes fine until I issue the command “hugo server”.

Only errors

  1. ERROR render of “home” failed: “/path/themes/newbee/layouts/_default/baseof.html:3:8”: execute of template failed: template: index.html:3:8: executing “index.html” at <partial “head.html” .>: error calling partial: execute of template failed: html/template:partials/head.html:12:20: no such template “_internal/google_analytics_async.html”

  2. ERROR render of “404” failed: “/path/newbee/layouts/_default/baseof.html:3:8”: execute of template failed: template: 404.html:3:8: executing “404.html” at <partial “head.html” .>: error calling partial: execute of template failed: html/template:partials/head.html:12:20: no such template “_internal/google_analytics_async.html”

  3. ERROR render of “taxonomy” failed: “path/newbee/layouts/_default/baseof.html:3:8”: execute of template failed: template: categories/terms.html:3:8: executing “categories/terms.html” at <partial “head.html” .>: error calling partial: execute of template failed: html/template:partials/head.html:12:20: no such template “_internal/google_analytics_async.html”

  4. Error: error building site: render: failed to render pages: render of “taxonomy” failed: “path/mantrasri/mantrasri/themes/newbee/layouts/_default/baseof.html:3:8”: execute of template failed: template: tags/terms.html:3:8: executing “tags/terms.html” at <partial “head.html” .>: error calling partial: execute of template failed: html/template:partials/head.html:12:20: no such template “_internal/google_analytics_async.html”

What could I be doing wrong?
Apologies for the long post.
Thank you
Srinath

That internal template was removed since Hugo v0.125.0.

I followed the example listed on the site.

Could you please provide the example link? That theme used by the example need to be updated.

Thank you very much. I used the NewBee theme.

The example code is taken from the Hugo website: The link is:

The code I used. The only items I changed is the example site and the theme
hugo new site quickstart
cd quickstart
git init
git submodule add GitHub - theNewDynamic/gohugo-theme-ananke: Ananke: A theme for Hugo Sites themes/ananke
echo “theme = ‘ananke’” >> hugo.toml
hugo server

OK, I see, you’ll need to report it to the newbee theme repo.

A quick fix is to override the head partial.

$ mkdir -p layouts/partials

$ cp themes/newbee/layouts/partials/head.html layouts/partials/head.html

And then edit the layouts/partials/head.html

{{ template "_internal/google_analytics_async.html" . }}

To

{{ template "_internal/google_analytics.html" . }}

But there are other issues cause build failures, so I’d suggest using 1) older Hugo version (119, 124 etc) or 2) other themes until the theme author fix them.

Thank you very much, I shall try these and revert.