Closed triptiarya closed 11 months ago
same, how to fix?
your probably using the wrong version of hugo, I had the same issue and I fixed it that way. My install was on debian and when I tried to install hugo with apt-get install hugo, I installed an older version of it. I believe I used the go command installation method and that worked for me, I wasn't able to use snap to install
I fixed this error by installing the latest version of hugo
Closing that issue. Please re-open if you have similar one.
I followed the readme to setup the example project, but everytime I run
hugo serve
I get this (or similar) errorBuilding sites … ERROR 2023/03/26 18:22:00 render of "page" failed: execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: execute of template failed: template: partials/meta.html:24:7: executing "partials/meta.html" at <partial "helpers/get" (dict "scratch" $scratch "row" .Params)>: error calling partial: "/home/v/nikweb/themes/eternity/layouts/partials/helpers/get.html:19:28": execute of template failed: template: partials/helpers/get.html:19:28: executing "partials/helpers/get.html" at <resources>: can't evaluate field GetRemote in type interface {} ERROR 2023/03/26 18:22:00 render of "page" failed: execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: execute of template failed: template: partials/meta.html:24:7: executing "partials/meta.html" at <partial "helpers/get" (dict "scratch" $scratch "row" .Params)>: error calling partial: "/home/v/nikweb/themes/eternity/layouts/partials/helpers/get.html:19:28": execute of template failed: template: partials/helpers/get.html:19:28: executing "partials/helpers/get.html" at <resources>: can't evaluate field GetRemote in type interface {} ERROR 2023/03/26 18:22:00 render of "page" failed: execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: execute of template failed: template: partials/meta.html:24:7: executing "partials/meta.html" at <partial "helpers/get" (dict "scratch" $scratch "row" .Params)>: error calling partial: "/home/v/nikweb/themes/eternity/layouts/partials/helpers/get.html:19:28": execute of template failed: template: partials/helpers/get.html:19:28: executing "partials/helpers/get.html" at <resources>: can't evaluate field GetRemote in type interface {} ERROR 2023/03/26 18:22:00 render of "page" failed: execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: execute of template failed: template: partials/meta.html:24:7: executing "partials/meta.html" at <partial "helpers/get" (dict "scratch" $scratch "row" .Params)>: error calling partial: "/home/v/nikweb/themes/eternity/layouts/partials/helpers/get.html:19:28": execute of template failed: template: partials/helpers/get.html:19:28: executing "partials/helpers/get.html" at <resources>: can't evaluate field GetRemote in type interface {} Built in 26 ms Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: execute of template failed: template: partials/meta.html:24:7: executing "partials/meta.html" at <partial "helpers/get" (dict "scratch" $scratch "row" .Params)>: error calling partial: "/home/v/nikweb/themes/eternity/layouts/partials/helpers/get.html:19:28": execute of template failed: template: partials/helpers/get.html:19:28: executing "partials/helpers/get.html" at <resources>: can't evaluate field GetRemote in type interface {}
But the config.example.yaml seems to work. [ Context:
]
I tried to copy the stuff inside themes/eternity/example/eternity.bora.sh/contents to the root of my hugo site folder, and make the required changes in the config.yaml (copy the menu array from project's config), it fails to build again.