Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors on site without expected parameters set #9

Closed
paskal opened this issue Mar 20, 2018 · 4 comments
Closed

Errors on site without expected parameters set #9

paskal opened this issue Mar 20, 2018 · 4 comments

Comments

@paskal
Copy link

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 20:35:50 Error while rendering "section" in "": template: theme/_default/list.html:2:3: executing "theme/_default/list.html" at <partial "page_header...>: error calling partial: template: theme/partials/page_header.html:5:10: executing "theme/partials/page_header.html" at <$.Scratch.Add>: error calling Add: Can't apply the operator to the values
ERROR 2018/03/20 20:35:50 Error while rendering "home" in "": template: theme/index.html:2:3: executing "theme/index.html" at <partial "page_header...>: error calling partial: template: theme/partials/page_header.html:5:10: executing "theme/partials/page_header.html" at <$.Scratch.Add>: error calling Add: Can't apply the operator to the values
ERROR 2018/03/20 20:35:50 Error while rendering "taxonomy" in "": template: theme/_default/list.html:2:3: executing "theme/_default/list.html" at <partial "page_header...>: error calling partial: template: theme/partials/page_header.html:5:10: executing "theme/partials/page_header.html" at <$.Scratch.Add>: error calling Add: Can't apply the operator to the values
ERROR 2018/03/20 20:35:50 Error while rendering "taxonomyTerm" in "": template: theme/_default/list.html:2:3: executing "theme/_default/list.html" at <partial "page_header...>: error calling partial: template: theme/partials/page_header.html:5:10: executing "theme/partials/page_header.html" at <$.Scratch.Add>: error calling Add: Can't apply the operator to the values

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
Author

paskal commented Mar 24, 2018

victoriadrake/hugo-theme-sam#3 is an example of how this can be fixed.

@digitalcraftsman
Copy link

Hello @paskal,

due to this issue the generation of a demo for your theme at https://themes.gohugo.io/ failed. Recently, we began a "spring cleaning" and are about to remove themes that fail to build and / or are unmaintained.

It would be great to see your theme added again. To do so please let us know when the issue has been resolved. For further information please have a look at gohugoio/hugoThemes#479.

@paskal
Copy link
Author

paskal commented Nov 10, 2018

@digitalcraftsman, it's not my theme. But if you came there anyway, please consider merging my changes to your themes, which I've prepared some time ago and which got zero attention so far:
digitalcraftsman/hugo-cactus-theme#52
digitalcraftsman/hugo-creative-theme#40
digitalcraftsman/hugo-icarus-theme#119
digitalcraftsman/hugo-minimalist-theme#14
digitalcraftsman/hugo-steam-theme#25
digitalcraftsman/hugo-strata-theme#49
digitalcraftsman/hugo-type-theme#33

@jnjosh
Copy link
Owner

jnjosh commented Nov 15, 2018

Fixed in 85ddc72

@jnjosh jnjosh closed this as completed Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants