Closed cosbgn closed 9 months ago
I use nuxt-content
and set:
sitemap:
loc: /blog/how-to-fix-this
lastmod: 2024-01-08
changefreq: monthly
priority: 0.8
The format is correct, but the module then changes it.
I have the same issue, the module transforms the last mod date to an invalid format.
These are the 2 valid formats according to Google:
2005-02-21T18:00:15 is an invalid date, it needs the timezone to be valid.
https://developers.google.com/search/blog/2006/04/using-lastmod-attribute
Thanks, looks like a big with the regex pattern matching. PRs welcome, otherwise will fix when I have a chance
I'll tackle this @harlan-zw
Please try 5.0.2 :)
Is generating something like this: