feat(gatsby-plugin-sitemap): create sitemap index#12239
Merged
wardpeet merged 6 commits intogatsbyjs:masterfrom Mar 11, 2019
t-jindai:topics/gatsby-plugin-sitemap-options
Merged
feat(gatsby-plugin-sitemap): create sitemap index#12239wardpeet merged 6 commits intogatsbyjs:masterfrom t-jindai:topics/gatsby-plugin-sitemap-options
wardpeet merged 6 commits intogatsbyjs:masterfrom
t-jindai:topics/gatsby-plugin-sitemap-options
Conversation
Contributor
Author
|
@pieh I assigned you as reviewer 🙇 because github suggested that you reviewed these file recently... I did not know what to do after making PR ( assigned someone as reviewer by myself or just wait). |
wardpeet
suggested changes
Mar 4, 2019
Contributor
wardpeet
left a comment
There was a problem hiding this comment.
Added a few comments. This looks pretty great. Big projects will benefit from this!
Contributor
|
I also tested the plugin and works! |
Co-Authored-By: tomoyukikashiro <ksrtmyk@gmail.com>
Contributor
Author
|
@wardpeet Thanks for your review 👍 I have one question ! |
muescha
reviewed
Mar 7, 2019
wardpeet
approved these changes
Mar 11, 2019
Contributor
|
Works like a charm, thank you! |
Contributor
|
Published in gatsby-plugin-sitemap@2.0.8 |
muescha
reviewed
Mar 12, 2019
| }, | ||
| } = queryRecords | ||
| return new Promise(resolve => { | ||
| // sitemapv-index.xml is default file name. (https://git.io/fhNgG) |
Contributor
There was a problem hiding this comment.
Suggested change
| // sitemapv-index.xml is default file name. (https://git.io/fhNgG) | |
| // sitemap-index.xml is default file name. (https://git.io/fhNgG) |
sitemapv-index -> sitemap-index?
Contributor
There was a problem hiding this comment.
@muescha it's already merged, could you add a new pr? :)
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Now
gatsby-plugin-sitemapcan not create sitemap index.This PR allow us to create it by passing additional option to that plugin.
Also this plugin did not have any tests so I added them.
Related Issues
#12100
Details
Above is the minimal configuration to split large sitemap.
When number of URL in sitemap is more than 5000 plugin will create sitemap (e.g.
sitemap-0.xml,sitemap-1.xml) and index (e.g.sitemap.xml) files.