You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When following these commands, it seems that hugo is reporting that it is not able to execute one of the templates due to not being able to evaluate the hugo library page state. This was a jekyll project that was imported into an existing project. The existing project was created using the expected hugo new site <test> command.
Start building sites … hugo v0.105.0+extended darwin/amd64 BuildDate=unknown ERROR 2022/11/14 10:26:58 render of "page" failed: execute of template failed: template: partials/header.html:8:10: executing "partials/header.html" at <.Hugo.Generator>: can't evaluate field Hugo in type *hugolib.pageState ERROR 2022/11/14 10:26:58 render of "page" failed: execute of template failed: template: partials/header.html:8:10: executing "partials/header.html" at <.Hugo.Generator>: can't evaluate field Hugo in type *hugolib.pageState ERROR 2022/11/14 10:26:58 render of "page" failed: execute of template failed: template: partials/header.html:8:10: executing "partials/header.html" at <.Hugo.Generator>: can't evaluate field Hugo in type *hugolib.pageState ERROR 2022/11/14 10:26:58 render of "page" failed: execute of template failed: template: partials/header.html:8:10: executing "partials/header.html" at <.Hugo.Generator>: can't evaluate field Hugo in type *hugolib.pageState ERROR 2022/11/14 10:26:58 render of "page" failed: execute of template failed: template: partials/header.html:8:10: executing "partials/header.html" at <.Hugo.Generator>: can't evaluate field Hugo in type *hugolib.pageState Error: Error building site: failed to render pages: render of "home" failed: "/Users/alexandram/test/themes/herring-cove/layouts/index.html:9:17": execute of template failed: template: index.html:9:17: executing "index.html" at <.RSSLink>: can't evaluate field RSSLink in type *hugolib.pageState Built in 98 ms
Is there another step that needs to be done regarding the templates when using the import command?
The text was updated successfully, but these errors were encountered:
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes, this is also a follow-up to this issue #10435
Issue:
After successfully importing a Jekyll project into my Hugo project, Hugo output the following steps to follow:
$ git clone https://github.com/spf13/herring-cove.git /Users/alexandram/test/themes/herring-cove
$ cd /Users/alexandram/test
$ hugo server --theme=herring-cove
When following these commands, it seems that hugo is reporting that it is not able to execute one of the templates due to not being able to evaluate the hugo library page state. This was a jekyll project that was imported into an existing project. The existing project was created using the expected
hugo new site <test>
command.Start building sites … hugo v0.105.0+extended darwin/amd64 BuildDate=unknown ERROR 2022/11/14 10:26:58 render of "page" failed: execute of template failed: template: partials/header.html:8:10: executing "partials/header.html" at <.Hugo.Generator>: can't evaluate field Hugo in type *hugolib.pageState ERROR 2022/11/14 10:26:58 render of "page" failed: execute of template failed: template: partials/header.html:8:10: executing "partials/header.html" at <.Hugo.Generator>: can't evaluate field Hugo in type *hugolib.pageState ERROR 2022/11/14 10:26:58 render of "page" failed: execute of template failed: template: partials/header.html:8:10: executing "partials/header.html" at <.Hugo.Generator>: can't evaluate field Hugo in type *hugolib.pageState ERROR 2022/11/14 10:26:58 render of "page" failed: execute of template failed: template: partials/header.html:8:10: executing "partials/header.html" at <.Hugo.Generator>: can't evaluate field Hugo in type *hugolib.pageState ERROR 2022/11/14 10:26:58 render of "page" failed: execute of template failed: template: partials/header.html:8:10: executing "partials/header.html" at <.Hugo.Generator>: can't evaluate field Hugo in type *hugolib.pageState Error: Error building site: failed to render pages: render of "home" failed: "/Users/alexandram/test/themes/herring-cove/layouts/index.html:9:17": execute of template failed: template: index.html:9:17: executing "index.html" at <.RSSLink>: can't evaluate field RSSLink in type *hugolib.pageState Built in 98 ms
Is there another step that needs to be done regarding the templates when using the import command?
The text was updated successfully, but these errors were encountered: