Hugo-coder: Errors on site without expected parameters set

Created on 20 Mar 2018  Â·  6Comments  Â·  Source: luizdepra/hugo-coder

Hello!

$subj, when trying to run this theme against my blog source I get following:

Building sites … ERROR 2018/03/20 14:45:21 Error while rendering "page" in "post/": template: /srv/hugo/themes/hugo-coder/layouts/_default/single.html:34:9: executing "/srv/hugo/themes/hugo-coder/layouts/_default/single.html" at <partial "header.html...>: error calling partial: template: theme/partials/header.html:7:15: executing "theme/partials/header.html" at <sort .Site.Menus.mai...>: error calling sort: sequence must be provided
ERROR 2018/03/20 14:45:21 Error while rendering "page" in "": template: /srv/hugo/themes/hugo-coder/layouts/_default/single.html:34:9: executing "/srv/hugo/themes/hugo-coder/layouts/_default/single.html" at <partial "header.html...>: error calling partial: template: theme/partials/header.html:7:15: executing "theme/partials/header.html" at <sort .Site.Menus.mai...>: error calling sort: sequence must be provided
ERROR 2018/03/20 14:45:21 Error while rendering "taxonomy" in "": template: /srv/hugo/themes/hugo-coder/layouts/_default/list.html:34:9: executing "/srv/hugo/themes/hugo-coder/layouts/_default/list.html" at <partial "header.html...>: error calling partial: template: theme/partials/header.html:7:15: executing "theme/partials/header.html" at <sort .Site.Menus.mai...>: error calling sort: sequence must be provided
ERROR 2018/03/20 14:45:21 Error while rendering "home" in "": template: /srv/hugo/themes/hugo-coder/layouts/index.html:34:9: executing "/srv/hugo/themes/hugo-coder/layouts/index.html" at <partial "header.html...>: error calling partial: template: theme/partials/header.html:7:15: executing "theme/partials/header.html" at <sort .Site.Menus.mai...>: error calling sort: sequence must be provided
ERROR 2018/03/20 14:45:21 Error while rendering "section" in "": template: /srv/hugo/themes/hugo-coder/layouts/_default/list.html:34:9: executing "/srv/hugo/themes/hugo-coder/layouts/_default/list.html" at <partial "header.html...>: error calling partial: template: theme/partials/header.html:7:15: executing "theme/partials/header.html" at <sort .Site.Menus.mai...>: error calling sort: sequence must be provided
ERROR 2018/03/20 14:45:21 Error while rendering "taxonomyTerm" in "": template: /srv/hugo/themes/hugo-coder/layouts/_default/list.html:34:9: executing "/srv/hugo/themes/hugo-coder/layouts/_default/list.html" at <partial "header.html...>: error calling partial: template: theme/partials/header.html:7:15: executing "theme/partials/header.html" at <sort .Site.Menus.mai...>: error calling sort: sequence must be provided
ERROR 2018/03/20 14:45:21 Error while rendering "404" in "": template: /srv/hugo/themes/hugo-coder/layouts/404.html:34:9: executing "/srv/hugo/themes/hugo-coder/layouts/404.html" at <partial "header.html...>: error calling partial: template: theme/partials/header.html:7:15: executing "theme/partials/header.html" at <sort .Site.Menus.mai...>: error calling sort: sequence must be provided

Change detected, rebuilding site
2018-03-20 14:46:02.451 +0000
Source changed "/srv/hugo/content/post/2018-03-19-lust-for-text-life.markdown": WRITE
ERROR 2018/03/20 14:46:02 Error while rendering "page" in "post/": template: /srv/hugo/themes/hugo-coder/layouts/_default/single.html:34:9: executing "/srv/hugo/themes/hugo-coder/layouts/_default/single.html" at <partial "header.html...>: error calling partial: template: theme/partials/header.html:7:15: executing "theme/partials/header.html" at <sort .Site.Menus.mai...>: error calling sort: sequence must be provided
ERROR 2018/03/20 14:46:02 Error while rendering "home" in "": template: /srv/hugo/themes/hugo-coder/layouts/index.html:34:9: executing "/srv/hugo/themes/hugo-coder/layouts/index.html" at <partial "header.html...>: error calling partial: template: theme/partials/header.html:7:15: executing "theme/partials/header.html" at <sort .Site.Menus.mai...>: error calling sort: sequence must be provided
ERROR 2018/03/20 14:46:02 Error while rendering "404" in "": template: /srv/hugo/themes/hugo-coder/layouts/404.html:34:9: executing "/srv/hugo/themes/hugo-coder/layouts/404.html" at <partial "header.html...>: error calling partial: template: theme/partials/header.html:7:15: executing "theme/partials/header.html" at <sort .Site.Menus.mai...>: error calling sort: sequence must be provided
Total in 313 ms

The reason is likely some absent .Site. parameter but you can't tell it from error message, I guess input parameters handling could be improved.

All 6 comments

Hmmm... Yeah, there is some improvements I should do.

But, your problem seems related to #1.
I already accepted the fix. Can you update and try again?

Building sites … ERROR 2018/03/23 13:40:11 Error while rendering "home" in "": template: /srv/hugo/themes/hugo-coder/layouts/index.html:2:5: executing "content" at <partial "home.html" ...>: error calling partial: template: theme/partials/home.html:6:15: executing "theme/partials/home.html" at <sort .Site.Params.so...>: error calling sort: sequence must be provided

Site won't render.

I thinks params.social is missing on your configuration.
I'll need to turn it optional too.

Just give me some time and I'll fix it.

Done!

Thanks a lot! Your theme is actually pretty cool, I'll add it to my blogging themes highlight which will come out in a day or two. I'll notify you when it will be out.

Haha! Nice.
Thank you for the report and feedback.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SillyPilleus picture SillyPilleus  Â·  5Comments

jtr109 picture jtr109  Â·  5Comments

rajeev1986 picture rajeev1986  Â·  7Comments

davhin picture davhin  Â·  5Comments

luizdepra picture luizdepra  Â·  7Comments