okkur / syna-start

Clonable starter repository for a Syna theme based website
Apache License 2.0
27 stars 59 forks source link

Not working with Hugo 0.72.0 #33

Closed bishopnator closed 4 years ago

bishopnator commented 4 years ago

Is this a BUG REPORT or FEATURE REQUEST?: bug

What happened: After git clone and hugo server -D it fails to build the site

What you expected to happen: The site is built

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?: Output:

Building sites … WARN 2020/06/01 13:52:06 .File.Dir on zero object. Wrap it in if or with: {{ with .File }}{{ .Dir }}{{ end }}
ERROR 2020/06/01 13:52:06 render of "page" failed: "d:\Programming\GoHugo\syna-start\themes\syna\layouts\_default\baseof.html:10:9": execute of template failed: template: _default/single.html:10:7: executing "_default/single.html" at <partial "helpers/fragments-renderer.html" (dict "page_scratch" .Scratch)>: error calling partial: "d:\Programming\GoHugo\syna-start\themes\syna\layouts\partials\helpers\fragments-renderer.html:10:9": execute of template failed: template: partials/helpers/fragments-renderer.html:10:9: executing "partials/helpers/fragments-renderer.html" at <(not (isset .Params "slot")) (ne .Params.slot "")>: can't give argument to non-function not (isset .Params "slot")
ERROR 2020/06/01 13:52:06 render of "home" failed: "d:\Programming\GoHugo\syna-start\themes\syna\layouts\_default\baseof.html:10:9": execute of template failed: template: _default/list.html:10:7: executing "_default/list.html" at <partial "helpers/fragments-renderer.html" (dict "page_scratch" .Scratch)>: error calling partial: "d:\Programming\GoHugo\syna-start\themes\syna\layouts\partials\helpers\fragments-renderer.html:10:9": execute of template failed: template: partials/helpers/fragments-renderer.html:10:9: executing "partials/helpers/fragments-renderer.html" at <(not (isset .Params "slot")) (ne .Params.slot "")>: can't give argument to non-function not (isset .Params "slot")
Built in 362 ms
Error: Error building site: failed to render pages: render of "page" failed: "d:\Programming\GoHugo\syna-start\themes\syna\layouts\_default\baseof.html:10:9": execute of template failed: template: _default/single.html:10:7: executing "_default/single.html" at <partial "helpers/fragments-renderer.html" (dict "page_scratch" .Scratch)>: error calling partial: "d:\Programming\GoHugo\syna-start\themes\syna\layouts\partials\helpers\fragments-renderer.html:10:9": execute of template failed: template: partials/helpers/fragments-renderer.html:10:9: executing "partials/helpers/fragments-renderer.html" at <(not (isset .Params "slot")) (ne .Params.slot "")>: can't give argument to non-function not (isset .Params "slot")

Environment:

mpourismaiel commented 4 years ago

Thanks for reporting. Looking into it right away. Please use v0.71 for now until we find and resolve the issue. Also we'd be happy to receive a PR if you have a solution in mind.

mpourismaiel commented 4 years ago

The problem is fixed within Syna. You can update the syna submodule within syna-start to fix the problem. We'll update the submodule on the repository as well.

Again, thanks for reporting the issue.

stp-ip commented 4 years ago

Patch release is planned for tomorrow including updating the submodule to the latest patch.

stp-ip commented 4 years ago

Sorry seems like I miscommunicated with the team. The aptch release is now done (v0.17.2) and also used in the latest version of Syna start.