Repository navigation
|
After the 5.1 update, I'm having an issue where all posts on my site are showing a "last updated" date instead of the set page date. Interestingly, this does not happen when previewing locally (Hugo localhost), only once it is published (via GitHub & netlify). I don't even have last updated dates set on these pages, so not sure why it would be over-riding the normal page date. See two screen shots below - first is local (correct), second is published (incorrect): Any ideas? |
Replies: 1 comment 6 replies
|
The date behaviour is set here: https://github.com/wowchemy/wowchemy-hugo-modules/blob/main/wowchemy/layouts/partials/page_metadata.html#L22 If As a work around, you can set |


The date behaviour is set here: https://github.com/wowchemy/wowchemy-hugo-modules/blob/main/wowchemy/layouts/partials/page_metadata.html#L22
If
Lastmodis not equal toDatethen "Last Updated on" is added. I'm not sure what date Hugo setsLastmodto if you haven't setlastmodin your frontmatter. Maybe that have changed in a recent Hugo release and that's why you're seeing different results locally and using GP and Netlify, i.e. the Hugo version set for Netlify/GP differs from your local version.As a work around, you can set
lastmodto the same date asdateand "Last updated on" should go away.