Heya! I have an unrelated question or proposal. So, if you check prismic’s sitemap /sitemap-0.xml, you’ll notice that every page has the same lastMod date.
The lastMod date is used by Google’s crawlers to estimate how often they need to visit your content and rerank it. It also sends positive signals to the Google algorithm, som they put you higher on SERP.
However, if you stamp the same date on every page, Google will ignore such param, because it’s a bit manipulative.
I’ve noticed your xml has a similar format as the Astro sitemaps usually do, so assuming you are on Astro you can address this issue with the serialize function from the official sitemap integration.
I’ve tried to figure it out on my own, but couldn’t. My assumption was that I could import the data from Astro:content, but found out I could not.
I am also aware that in integrations you can access the step astro:build:done
, which will give you all the generated pages. You can use that to parse each file yourself a second time to find the pubDate and write that information to your sitemap.
But I am not that tech-savvy enough to figure out how to do all of that. So I am just informing you about this issue and if you someday address it, please share the solution. I promise to do the same.