Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sitemap is missing lastmod values #1008

Open
andersme opened this issue Mar 2, 2023 · 4 comments
Open

Sitemap is missing lastmod values #1008

andersme opened this issue Mar 2, 2023 · 4 comments

Comments

@andersme
Copy link

andersme commented Mar 2, 2023

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

@jermdavis
Copy link

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

@andersme
Copy link
Author

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
Copy link
Author

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

@jermdavis
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants