Gatsby Advanced Sitemap Plugin add custom link

I was trying this GitHub - TryGhost/gatsby-plugin-advanced-sitemap: Advanced XML Sitemaps for Gatsby.js
and I want to add a custom link to the sitemap does anyone know how I can add a custom link to the sitemap?

@Aileen I brought the question here from github if you can help :slight_smile: thanks

Hey @userghost8343

Thanks for moving it here, appreciate!

It’s currently not possible to add manual pages. May I ask which use-case you’d like to cover?

It is possible though, to add an external sitemap link. We’ve done this here for everything on the /blog subdirectory, which has its own sitemaps:

To achieve this, you can add those in your gatsby-config.js:

{
    resolve: `gatsby-plugin-advanced-sitemap`,
    options: {
        ...
        additionalSitemaps: [
            {
                url: `https://ghost.org/blog/sitemap-pages.xml`,
            },
            {
                url: `https://ghost.org/blog/sitemap-posts.xml`,
            },
            {
                url: `https://ghost.org/blog/sitemap-authors.xml`,
            },
            {
                url: `https://ghost.org/blog/sitemap-tags.xml`,
            },
        ],
    },
},