Skip to content
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.

Errors on site without expected parameters set #32

Closed
paskal opened this issue Mar 20, 2018 · 1 comment
Closed

Errors on site without expected parameters set #32

paskal opened this issue Mar 20, 2018 · 1 comment

Comments

@paskal
Copy link
Contributor

paskal commented Mar 20, 2018

Hello!

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

Building sites … ERROR 2018/03/20 18:19:04 Error while rendering "page" in "": template: /srv/hugo/themes/type/layouts/_default/single.html:9:4: executing "/srv/hugo/themes/type/layouts/_default/single.html" at <partial "footer.html...>: error calling partial: template: theme/partials/footer.html:2:78: executing "theme/partials/footer.html" at <markdownify>: wrong number of args for markdownify: want 1 got 0
ERROR 2018/03/20 18:19:04 Error while rendering "page" in "post/": template: /srv/hugo/themes/type/layouts/_default/single.html:9:4: executing "/srv/hugo/themes/type/layouts/_default/single.html" at <partial "footer.html...>: error calling partial: template: theme/partials/footer.html:2:78: executing "theme/partials/footer.html" at <markdownify>: wrong number of args for markdownify: want 1 got 0
ERROR 2018/03/20 18:19:04 Error while rendering "page" in "": template: /srv/hugo/themes/type/layouts/_default/single.html:11:6: executing "main" at <partial "post-meta" ...>: error calling partial: template: theme/partials/post-meta.html:5:17: executing "theme/partials/post-meta.html" at <len .Params.tags>: error calling len: len of untyped nil
ERROR 2018/03/20 18:19:04 Error while rendering "page" in "post/": template: /srv/hugo/themes/type/layouts/_default/single.html:11:6: executing "main" at <partial "post-meta" ...>: error calling partial: template: theme/partials/post-meta.html:5:17: executing "theme/partials/post-meta.html" at <len .Params.tags>: error calling len: len of untyped nil
ERROR 2018/03/20 18:19:04 Error while rendering "taxonomy" in "": template: /srv/hugo/themes/type/layouts/_default/list.html:9:4: executing "/srv/hugo/themes/type/layouts/_default/list.html" at <partial "footer.html...>: error calling partial: template: theme/partials/footer.html:2:78: executing "theme/partials/footer.html" at <markdownify>: wrong number of args for markdownify: want 1 got 0
ERROR 2018/03/20 18:19:04 Error while rendering "taxonomy" in "": template: /srv/hugo/themes/type/layouts/_default/list.html:2:4: executing "main" at <partial "post-list.h...>: error calling partial: template: theme/partials/post-list.html:11:6: executing "theme/partials/post-list.html" at <partial "post-meta" ...>: error calling partial: template: theme/partials/post-meta.html:5:17: executing "theme/partials/post-meta.html" at <len .Params.tags>: error calling len: len of untyped nil
ERROR 2018/03/20 18:19:04 Error while rendering "section" in "": template: /srv/hugo/themes/type/layouts/_default/list.html:9:4: executing "/srv/hugo/themes/type/layouts/_default/list.html" at <partial "footer.html...>: error calling partial: template: theme/partials/footer.html:2:78: executing "theme/partials/footer.html" at <markdownify>: wrong number of args for markdownify: want 1 got 0
ERROR 2018/03/20 18:19:04 Error while rendering "section" in "": template: /srv/hugo/themes/type/layouts/_default/list.html:2:4: executing "main" at <partial "post-list.h...>: error calling partial: template: theme/partials/post-list.html:11:6: executing "theme/partials/post-list.html" at <partial "post-meta" ...>: error calling partial: template: theme/partials/post-meta.html:5:17: executing "theme/partials/post-meta.html" at <len .Params.tags>: error calling len: len of untyped nil
ERROR 2018/03/20 18:19:04 Error while rendering "home" in "": template: theme/index.html:17:7: executing "theme/index.html" at <partial "footer.html...>: error calling partial: template: theme/partials/footer.html:2:78: executing "theme/partials/footer.html" at <markdownify>: wrong number of args for markdownify: want 1 got 0
ERROR 2018/03/20 18:19:04 Error while rendering "home" in "": template: theme/index.html:14:7: executing "theme/index.html" at <partial "post-list.h...>: error calling partial: template: theme/partials/post-list.html:11:6: executing "theme/partials/post-list.html" at <partial "post-meta" ...>: error calling partial: template: theme/partials/post-meta.html:5:17: executing "theme/partials/post-meta.html" at <len .Params.tags>: error calling len: len of untyped nil
ERROR 2018/03/20 18:19:05 Error while rendering "taxonomyTerm" in "": template: /srv/hugo/themes/type/layouts/_default/list.html:9:4: executing "/srv/hugo/themes/type/layouts/_default/list.html" at <partial "footer.html...>: error calling partial: template: theme/partials/footer.html:2:78: executing "theme/partials/footer.html" at <markdownify>: wrong number of args for markdownify: want 1 got 0
ERROR 2018/03/20 18:19:05 Error while rendering "taxonomyTerm" in "": template: /srv/hugo/themes/type/layouts/_default/list.html:2:4: executing "main" at <partial "post-list.h...>: error calling partial: template: theme/partials/post-list.html:11:6: executing "theme/partials/post-list.html" at <partial "post-meta" ...>: error calling partial: template: theme/partials/post-meta.html:5:17: executing "theme/partials/post-meta.html" at <len .Params.tags>: error calling len: len of untyped nil
ERROR 2018/03/20 18:19:05 Error while rendering "404" in "": template: theme/404.html:14:6: executing "theme/404.html" at <partial "footer.html...>: error calling partial: template: theme/partials/footer.html:2:78: executing "theme/partials/footer.html" at <markdownify>: wrong number of args for markdownify: want 1 got 0

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. cboettig/hugo-now-ui#9 might be used as reference point.

@paskal
Copy link
Contributor Author

paskal commented Mar 16, 2019

Fixed via 1e0441b.

@paskal paskal closed this as completed Mar 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant