WIth hugo serve, the last modified dates of pages shows up right.
With cloudflare deploys, every single page on the site says it was last modified on the date of the most recent deploy.
This is a similar issue -
discourse.gohugo dot io/t/page-lastmod-always-show-todays-date-in-deployed-site-not-the-last-mod-date/33576
Semi related but not my issue -
github dot com/gohugoio/hugoDocs/issues/1624, gohugo dot io/getting-started/configuration/#configure-dates [had to remove urls, new users are limited to 2 per post]
As is this -
discourse.gohugo dot io/t/incorrect-lastmod-git-date-when-deploying-using-github-pages/40900/2
Also related -
github dot com/gohugoio/hugo/issues/9810#issuecomment-1107519804 from @jmooring
I believe the fix would be to be able to run this on cloudflare pages.
git config --global core.quotepath false
I updated hugo from 114.1 to 118.2 locally
I updated the hugo version requirement on cloudflare from 114.1 to 118.2
I ran “git config --global core.quotepath false” locally and then updated my site and deployed, no success
I changed the cloudflare build command from “hugo” to “git config core.quotepath false && hugo”, it runs the command in the build log and no error, but resulting deploy has same issue (and I’m visiting directly from the deployed url rather than site url, to prevent cache issues)
I changed the cloudflare build command from “hugo” to “git config --global core.quotepath false && hugo”, it runs the command in the build log and no error, but resulting deploy has same issue
I changed cloudflare build command from “hugo” to “git config --global user.email “email@example.com” && git config --global user.name “Name” && git config --global core.quotepath false && touch blank.md && git add . && git commit -m “add” && hugo”, no errors, but didn’t fix the issue
What would you suggest @jmooring ?