jhvanderschee / hugobricks

MIT License
74 stars 26 forks source link

build problem (particular to ? ) @ Cloudcannon #41

Closed fenix011 closed 1 year ago

fenix011 commented 1 year ago
$ hugo --destination public --baseURL / --noTimesTotal in 6 ms

Error: add site dependencies: load resources: loading templates: "/usr/local/__site/src/themes/hugobricks/layouts/partials/breadcrumbs.html:2:1": parse failed: template: partials/breadcrumbs.html:2: function "page" not defined

❌ Your build failed, make an update and try again.

When building at Cloudcannon. The problem is not seen locally... weirdly enough.

jhvanderschee commented 1 year ago

Because Cloudcannon runs on 0.81_extended (probably). https://cloudcannon.com/documentation/changelog/2021/03/09/hugo-version-update.html. Usecue CMS runs a more recent version. The page variable is available in 0.111 and up. https://gohugo.io/variables/page/#the-global-page-function