After building the site via Netlify, post dates are missing in the blog widget and in each post. Instead, the date when the post was last updated is shown below the post title. This occurs despite setting enableGitInfo = false in config.toml.
config.toml, set enableGitInfo = false.hugo new --kind post post/test.hugo server start.Post dates should be shown in posts and on the blog widget below the title. "last updated on [...]" should be ommitted.
Post dates are missing in posts and on the blog widget below the title. "last updated on [...]" (last git commit) is shown instead.
Academic Theme version: 4.3.1
Hugo Version on local machine (where no issue is encountered): v0.55.6 freebsd/386
Thank you!
As you pointed out, this is not a bug with Academic and works fine when you render it locally.
You may want to check your netlify.toml file if you haven't already as that is where your Netlify settings are stored and it is where you can disable HUGO_ENABLEGITINFO for your Netlify site.
Feel free reach out to Hugo team (who implemented enableGitInfo) on the Hugo forums or the Netlify community.
I understand. Thanks for explaining how to disable the whole thing! Before I reach out to Hugo and Netlify, could you point me to some relevant lines in your code, so I can give them a pointer?
@henningninneh

Most helpful comment
@henningninneh
