Statiq.Web icon indicating copy to clipboard operation
Statiq.Web copied to clipboard

Sitemap is missing lastmod values

Open andersme opened this issue 2 years ago • 4 comments

Is there a way to get the generated sitemap to include the lastmod values?

andersme avatar Mar 02 '23 05:03 andersme

I came across this ticket when I noticed the same thing about my site generated with Statiq. I'm not sure if this is "the right" answer or not, but after a bit of spelunking through the code I did make it work. If this is still an issue for you @andersme, perhaps this post might offer some help?

https://blog.jermdavis.dev/posts/2023/extend-statiq-sitemap

jermdavis avatar Jul 31 '23 06:07 jermdavis

I came across this ticket when I noticed the same thing about my site generated with Statiq. I'm not sure if this is "the right" answer or not, but after a bit of spelunking through the code I did make it work. If this is still an issue for you @andersme, perhaps this post might offer some help?

https://blog.jermdavis.dev/posts/2023/extend-statiq-sitemap

That is exactly what I'm looking for. I'll try it out. Thanks for the help!

andersme avatar Jul 31 '23 14:07 andersme

The fix above does work perfectly. I think this should be the default behavior.

andersme avatar Jul 31 '23 17:07 andersme

Awesome. Glad to hear that's helped you solve your problem.

I'll have a think about a suitable PR for the change, and see if the maintainers want to accept that.

jermdavis avatar Aug 01 '23 07:08 jermdavis