Layout/theme exists but hugo failed to execute template while deploying to github pages

Full error here:

Error: error building site: render: failed to render pages: render of “home” failed: “/home/runner/work/maithgopalan.github.io/maithgopalan.github.io/themes/academimal/layouts/_default/baseof.html:6:3”: execute of template failed: template: index.html:6:3: executing “index.html” at <partial “foot.html” .>: error calling partial: execute of template failed: html/template:partials/foot.html:5:16: no such template “_internal/google_analytics_async.html”

Can someone help? Thanks!

Also, my foot.html already has this added {{ template “_internal/google_analytics_async.html” . }}

as I learned from a prior support forum post. So not sure if I am missing something. Should I add another async.html file inside the partials?

Finally, when I tried to remove the _async in the foot.html, i was not able to commit. Maybe because it’s still using the theme from here: GitHub - yangl1996/academimal at acf9ebb05fbc0e7dc4bbfa7219e6d86a934654d2 that hasn’t been updated in 6 years maybe and I dont have permissions to update it even within my fork? How to resolve that?

You added the theme as a Git submodule, currently pointing a very old commit.

You can update to the theme’s latest commit, but that’s just going to create more problems because the theme author has neglected to include some partials. Nor have they documented any of the required site parameters.

If you want to do it anyway:

git submodule update --recursive --remote

If I were you I would use a different theme.

1 Like

Ah! It’s such a clean, minimal theme that I like. Anyway I can remove the submodule and re-iniatialize to make it my own and only make changes inside my copy to try if it will render? Also, jmooring - you are awesome, thanks in advance for helping me out even on a sunday!