Some Past Projects Stopped Working


I need to update a project from a couple of years ago and I am getting the error on build (without any changes):

hugo v0.111.3+extended darwin/arm64 BuildDate=unknown
Error: Error building site: failed to render pages: render of "home" failed: "/Users/dathin/Documents/Develop/web/markos_site/sonic_view/layouts/index.html:25:151": execute of template failed: template: index.html:25:151: executing "index.html" at <.GetParam>: can't evaluate field GetParam in type page.Page

I tried other projects and most work but there is one that gives me the same error :thinking:

I am on a Mac Studio so was wondering if there is something Apple Silicon related but the error doesn’t give me much to go from.

Would be grateful for any help!

I can’t find if it was removed but I can find
“Page.GetParam is deprecated and will be removed in a future release”

So my guess is that line 25 in your index.html template needs updating to the current method.

1 Like

Thank you!

For reference I had to change it to .Site.Param