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

Generating sitemap index - with an external URL #50

Closed
kirtan403 opened this issue May 15, 2023 · 1 comment
Closed

Generating sitemap index - with an external URL #50

kirtan403 opened this issue May 15, 2023 · 1 comment

Comments

@kirtan403
Copy link

Details

We wanted to generate a sitemap index with 2 sitemaps:

  1. One sitemap generated by this module.
  2. One external sitemap url, which points to one of our site that is hosted on the subpath.

How can we achieve this?

I tried to split this with the sitemaps key (https://github.com/harlan-zw/nuxt-simple-sitemap#multiple-sitemap-support), but this doesn't seem to take any effect (#49).

@harlan-zw
Copy link
Collaborator

Hi @kirtan403, thanks for the issue :)

This is now supported in v2.6.0 using the sitemaps.index key. You can see the docs here: https://github.com/harlan-zw/nuxt-simple-sitemap#manual-chunking

 sitemaps: {
  // generated sitemaps  
  posts: {
    // ...
  },
  pages: {
    // ...
  },
  // extending the index sitemap with an external sitemap
  index: [
    { sitemap: 'https://www.google.com/sitemap-pages.xml' }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants