chipzoller / hugo-clarity

A theme for Hugo based on VMware Clarity
Other
571 stars 263 forks source link

Unable to build on cloudflare pages #354

Closed sazstuff closed 2 years ago

sazstuff commented 2 years ago

I have checked all the prerequisites below and I'm yet experiencing a problem

Describe the bug

Trying to build cloudflare pages with this theme as a sub-module sourced at https://github.com/sazstuff/sazstuff.com and the application build is throwing this error after executing command hugo:

Error: "/opt/buildhome/repo/themes/hugo-clarity/layouts/partials/func/getCodeBlockSettings.html:25:1": parse failed: template: partials/func/getCodeBlockSettings.html:25: function "return" not defined

Desktop (please complete the following information):

sazstuff commented 2 years ago

I ended up switching to just hosting the Hugo built static site instead of trying to have cloudflare build it, but I was hoping to find out why this type of error would show on the cloudflare build but not on my local machine. Also, is there a better way to ask questions on this theme without posting a bug report?