Replies: 2 comments
-
same needed |
Beta Was this translation helpful? Give feedback.
0 replies
-
Linking this PR that implements this for people to subscribe to or review: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Body
Sumary
Ability to link extra sitemaps(probably from other projects) to the
sitemap-index.xml
. You can filter out pages and add custom pages but not link other sitemaps.Background & Motivation
I recently worked on a static site in
astro
, great experience. Then I moved to my next project, which again was another static site. As these are different projects, they'll have their individual sitemaps, but I just wanted to refer the sitemap of the second project and of those that I'll create in future in the first's one.Goals
Have a lightweight and non-breaking change that'll help in generation of custom sitemaps via an optional field in the options object of the sitemap.
Worries
There can be unintentional collisions in the URLs by doing so, where we can simply ignore the duplicates.
Example
Example of how the config might look like.
current workaround
For now, I am making use of a bash script during the CI to achieve this but it will be super handy to have an option to do this within the config itself.
Beta Was this translation helpful? Give feedback.
All reactions