mattstratton / castanet

A podcast-oriented theme for Hugo
MIT License
115 stars 61 forks source link

[BUG] - Issue deploying with Cloudflare pages #388

Closed mrhappyma closed 2 years ago

mrhappyma commented 2 years ago

Hello! I am having trouble deploying my site with Cloudflare pages. It otherwise works fine, I've tried it locally and on Netlify.

17:38:50.194 | Executing user command: hugo
-- | --
17:38:50.261 | Error: "/opt/buildhome/repo/themes/castanet/layouts/partials/row-taxonomy.html:5:1": parse failed: template: partials/row-taxonomy.html:5: illegal number syntax: "-"
17:38:50.267 | Failed: build command exited with code: 255
17:38:50.990 | Failed: an internal error occurred
mrhappyma commented 2 years ago

After some intense googling I found the issue - Cloudflare pages was using an old version of Hugo. To fix this I set the environment variable HUGO_VERSION to the version number I had installed on my computer (0.101.0) and it worked.

Not a problem with castanet at all.