Cloudflare Pages and Hugo
This is my first post after getting Hugo and Cloudflare pages working. It took a little bit of time to figure out the syntax and my builds were showing that they were failing on Cloudflare with this error Error: Error building site: open /opt/buildhome/repo/content: no such file or directory
but I eventually gave up and continued on to find out the site was building correctly building correctly.
Once I got my project to build correctly, I spent some time finding a theme that I liked and then start customizing it. I tried publishing the new theme but was getting an error for Hugo being an outdated version. I think the default is version 0.54.0 and the theme wanted something around 0.90.0. I found a post that described my issue and all I needed to do was set the environement variable in Cloudflare pages to HUGO_VERSION = 0.106.0
.
This is definately be an ongoing process since there is a lot to learn, but I really like that I can test the site locally and then check in the code to GitHub and my site will be triggered to update.