Skip to content

fix(@astro/sitemap): include lastmod for sitemap entries #14233

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gouravkhunger
Copy link
Contributor

Changes

  • Defining lastmod correctly applies to <url> entries in each sitemap-${i}.xml file
  • This PR adds a minor fix to use that lastmod for <sitemap> entries in the root sitemap-index.xml file as well.
  • lastmod should also be supported on <sitemap>. See Sample XML Sitemap Index on this doc.

Testing

Added additional test case in custom-sitemaps.test.js.

Docs

This is an internal fix.

Copy link

changeset-bot bot commented Aug 15, 2025

🦋 Changeset detected

Latest commit: 955e064

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: integration Related to any renderer integration (scope) label Aug 15, 2025
@ematipico
Copy link
Member

Seems like tests are failing consistently

@gouravkhunger
Copy link
Contributor Author

Based on the logs, I don’t believe it’s in code that I touched. Am I missing something? 🤔

@ematipico
Copy link
Member

I'll look into that, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: integration Related to any renderer integration (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants