digitalcraftsman / hugo-steam-theme

Port of Tommaso Barbato's Ghost theme Steam to Hugo
MIT License
66 stars 51 forks source link

Errors on site without expected parameters set #24

Closed paskal closed 5 years ago

paskal commented 6 years ago

Hello!

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

Building sites … ERROR 2018/03/20 18:19:00 Error while rendering "page" in "post/": template: /srv/hugo/themes/steam/layouts/_default/single.html:1:3: executing "/srv/hugo/themes/steam/layouts/_default/single.html" at <partial "head" .>: error calling partial: template: theme/partials/head.html:40:7: executing "theme/partials/head.html" at <partial (printf "the...>: error calling partial: Partial "themes/%!s(<nil>)-theme" not found
ERROR 2018/03/20 18:19:00 Error while rendering "page" in "": template: /srv/hugo/themes/steam/layouts/_default/single.html:1:3: executing "/srv/hugo/themes/steam/layouts/_default/single.html" at <partial "head" .>: error calling partial: template: theme/partials/head.html:40:7: executing "theme/partials/head.html" at <partial (printf "the...>: error calling partial: Partial "themes/%!s(<nil>)-theme" not found
ERROR 2018/03/20 18:19:00 Error while rendering "taxonomy" in "": template: /srv/hugo/themes/steam/layouts/_default/list.html:1:3: executing "/srv/hugo/themes/steam/layouts/_default/list.html" at <partial "head" .>: error calling partial: template: theme/partials/head.html:40:7: executing "theme/partials/head.html" at <partial (printf "the...>: error calling partial: Partial "themes/%!s(<nil>)-theme" not found
ERROR 2018/03/20 18:19:00 Error while rendering "home" in "": template: /srv/hugo/themes/steam/layouts/index.html:1:3: executing "/srv/hugo/themes/steam/layouts/index.html" at <partial "head" .>: error calling partial: template: theme/partials/head.html:40:7: executing "theme/partials/head.html" at <partial (printf "the...>: error calling partial: Partial "themes/%!s(<nil>)-theme" not found
ERROR 2018/03/20 18:19:00 Error while rendering "taxonomyTerm" in "": template: /srv/hugo/themes/steam/layouts/_default/terms.html:1:3: executing "/srv/hugo/themes/steam/layouts/_default/terms.html" at <partial "head" .>: error calling partial: template: theme/partials/head.html:40:7: executing "theme/partials/head.html" at <partial (printf "the...>: error calling partial: Partial "themes/%!s(<nil>)-theme" not found
ERROR 2018/03/20 18:19:00 Error while rendering "section" in "": template: /srv/hugo/themes/steam/layouts/_default/list.html:1:3: executing "/srv/hugo/themes/steam/layouts/_default/list.html" at <partial "head" .>: error calling partial: template: theme/partials/head.html:40:7: executing "theme/partials/head.html" at <partial (printf "the...>: error calling partial: Partial "themes/%!s(<nil>)-theme" not found
ERROR 2018/03/20 18:19:00 Error while rendering "404" in "": template: /srv/hugo/themes/steam/layouts/404.html:1:3: executing "/srv/hugo/themes/steam/layouts/404.html" at <partial "head" .>: error calling partial: template: theme/partials/head.html:40:7: executing "theme/partials/head.html" at <partial (printf "the...>: error calling partial: Partial "themes/%!s(<nil>)-theme" not found

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