boratanrikulu / eternity

A minimalist Hugo theme designed for portfolio sites.
https://eternity.bora.sh
MIT License
237 stars 78 forks source link

Error with hugo serve #45

Closed triptiarya closed 11 months ago

triptiarya commented 1 year ago

I followed the readme to setup the example project, but everytime I run hugo serve I get this (or similar) error

Building 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:

Use empty content. Copy example config.

cp ./themes/eternity/config.example.yaml ./config.yaml

]

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.

lrmn7 commented 1 year ago

same, how to fix?

alexanderjerome commented 1 year ago

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

Espresso-Kp commented 1 year ago

I fixed this error by installing the latest version of hugo

boratanrikulu commented 11 months ago

Closing that issue. Please re-open if you have similar one.