This seems to be due to the Anake module not being compatible with the Hugo version
Have tried different Hugo versions without success.
Works fine locally. Have followed instructions with no success. Can’t load full log due to interface restrictions
WARN Module “GitHub - theNewDynamic/gohugo-theme-ananke: Ananke: A theme for Hugo Sites” is not compatible with this Hugo version; run “hugo mod graph” for more information.
Is this because of the Ananke version ?
ERROR render of “home” failed: “/opt/buildhome/.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/the!new!dynamic/gohugo-theme-ananke@v0.0.0-20240928043059-33178c0d498e/layouts/_default/baseof.html:29:7”: execute of template failed: template: index.html:29:7: executing “index.html” at <partial “site-style.html” .>: error calling partial: “/opt/buildhome/.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/the!new!dynamic/gohugo-theme-ananke@v0.0.0-20240928043059-33178c0d498e/layouts/partials/site-style.html:1:8”: execute of template failed: template: partials/site-style.html:1:8: executing “partials/site-style.html” at <partialCached “func/style/GetMainCSS” “style/GetMainCSS”>: error calling partialCached: “/opt/buildhome/.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/the!new!dynamic/gohugo-theme-ananke@v0.0.0-20240928043059-33178c0d498e/layouts/partials/func/style/GetMainCSS.html:69:23”: execute of template failed: template: partials/func/style/GetMainCSS.html:69:23: executing “partials/func/style/GetMainCSS.html” at : can’t evaluate field Sass in type interface {}
|12:29:58.191|Start building sites … |
|12:29:58.191|hugo v0.117.0-b2f0696cad918fb61420a6aff173eb36662b406e+extended linux/amd64 BuildDate=2023-08-07T12:49:48Z VendorInfo=gohugoio|
|12:29:58.192||
Try the latest version of Hugo (currently v0.135.0).
Timutei
8
That worked. Not sure why Cloudflare Pages defaulted to 0.118.0 from the beginning
Thanks
karis
9
If you read their docs, they suggest to how to set an environment variable for a Hugo site. Hugo | Cloudflare Pages docs
Also, learn to wrap your code with backticks (the </>
icon) for easier readability.