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

Auto creating sitemap and index files from one large list? #79

Open
PTiCA1 opened this issue Aug 20, 2019 — with CMTY · 6 comments

Comments

Copy link

commented Aug 20, 2019 — with CMTY

What problem does this feature solve?

Hello to everybody,
does anyone have a solution to solve sitemap generation for a large number of pages? I generate articles from wordpress rest api and I need to split the sitemap into more files.

There is a solution in the sitemap.js documentation but I don't know how to use it in nuxt.js
https://github.com/ekalinin/sitemap.js#building-just-the-sitemap-index-file

Thanks for any advice.

This feature request is available on Nuxt community (#c62)
@cmty cmty bot added the cmty:feature-request label Aug 20, 2019
@AndyCosow

This comment has been minimized.

Copy link

commented Aug 29, 2019

Hi there, i was dealing with the similar problem - i made single sitemap with this module, there was little bit less than 50k links, so when provided that sitemap to google search console, they failed to fetch it.

My solution was to build sitemap index and put all the sub sitemaps in to it - i took all links from my old sitemap and divided them in categories. All this was done with sitemap.js in node.js using express router to send back response as generated sitemap.xml index file.

@roryheaney

This comment has been minimized.

Copy link

commented Sep 17, 2019

@AndyCosow did you have example code for that available?

@NicoPennec

This comment has been minimized.

Copy link
Member

commented Sep 17, 2019

@PTiCA1 the "sitemap index" feature is WIP (see #6), but without limit size for now 😕

After a quick review, it seems that we can't use the createSitemapIndex function from sitemap.js you're quoting, because the sitemap-module dynamically returns the sitemaps and won't be able to write to a folder as the feature proposes.

When the new version of the sitemap module with sitemapindex will be published (and stable ^^). We can start developing your feature. It will be an useful enhance 👍

@AndyCosow

This comment has been minimized.

Copy link

commented Sep 19, 2019

@roryheaney yes, here it is - On CodePile

I also recommend you to look in to sitemap.js documentation everything is pretty clear out there :)

@NicoPennec NicoPennec added this to the 2.1 milestone Sep 26, 2019
@ricardogobbosouza

This comment has been minimized.

Copy link
Member

commented Oct 17, 2019

@PTiCA1 This feature exists in v2.0.0
@NicoPennec can closed?

@NicoPennec

This comment has been minimized.

Copy link
Member

commented Oct 17, 2019

@ricardogobbosouza nope! the v2.0.0 add only a manual splitting. The auto splitting is planned for the next release (see milestone). I started working on it (but not published yet)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.