Posted on [datetime] seems to be broken

I just noticed that the “Posted on XXX” shows Posted on map[Count:November 16, 2021] instead of Posted on November 16, 2021 In the post title, this issue isn’t present in localhost but appears when I publish to Cloudflare pages.

I’m using beautifulhugo theme

Any idea why this is happening?

Can you share a link to the public repository for your project?

See https://discourse.gohugo.io/t/requesting-help/9132.

Let us see your code

Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.

If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.

Also…

  1. Which version of Hugo are you running locally?
  2. Which version of Hugo is building your site on cloudfare?
  3. When was the last time you updated the theme?

Here’s the blog https://github.com/johnwesonga/run-kb-blog

I’ve looked at the generated static files and everything seems to be fine, no idea why it’s broken on Cloudflare Pages but working just fine on local

Thanks for including the guidelines…

Hugo Version: hugo v0.89.3+extended darwin/amd64 BuildDate=unknown
Theme: I did a git submodule update --init --recursive to get the latest build of the theme

You may be running v0.89.3 locally, but Cloudfare is building your site with an older version, something older than v0.76.3.

See:
https://developers.cloudflare.com/pages/framework-guides/deploy-a-hugo-site#using-a-specific-hugo-version

I set the environment variable HUGO_VERSION = 0.89.3 and pushed an update, still no luck, so I switched to a different theme and it seems to be working fine now.