chipzoller / hugo-clarity

A theme for Hugo based on VMware Clarity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to build on cloudflare pages

sazstuff opened this issue · comments

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

  • [ x] Read the README.md
  • [ x] Have the extended version of Hugo installed
  • [ x] Used the exampleSite's config.toml as a reference
  • [ x] I have included my repository link. Instead of pasting long snippets here.

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):

  • OS: [e.g. iOS 14, Windows 10]
  • Browser [e.g. chrome 76, safari 13]

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?