Gathering detailed insights and metrics for gatsby-plugin-advanced-sitemap-patch
Gathering detailed insights and metrics for gatsby-plugin-advanced-sitemap-patch
Gathering detailed insights and metrics for gatsby-plugin-advanced-sitemap-patch
Gathering detailed insights and metrics for gatsby-plugin-advanced-sitemap-patch
Advanced XML Sitemaps for Gatsby.js
npm install gatsby-plugin-advanced-sitemap-patch
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (84.39%)
XSLT (15.61%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
149 Stars
314 Commits
10 Watchers
2 Branches
48 Contributors
Updated on Jun 19, 2025
Latest Version
2.1.8
Package Id
gatsby-plugin-advanced-sitemap-patch@2.1.8
Unpacked Size
89.80 kB
Size
22.32 kB
File Count
47
NPM Version
8.15.0
Node Version
16.17.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
It's a fork of thi plugin advanced sitemap plugin. The difference it's :
NOTE: This plugin only generates output in production
mode! To test, run: gatsby build && gatsby serve
yarn add --save gatsby-plugin-advanced-sitemap-patch
By default this plugin will generate a single sitemap of all pages on your site, without any configuration needed.
1// gatsby-config.js 2 3siteMetadata: { 4 siteUrl: `https://www.example.com`, 5}, 6plugins: [ 7 `gatsby-plugin-advanced-sitemap-patch` 8]
If you want to generate advanced, individually organised sitemaps based on your data, you can do so by passing in a query and config. The example below uses Ghost, but this should work with any data source - including Pages, Markdown, Contentful, etc.
Example:
1// gatsby-config.js 2 3plugins: [ 4 { 5 resolve: `gatsby-plugin-advanced-sitemap-patch`, 6 options: { 7 // 1 query for each data type 8 query: ` 9 { 10 allGhostPost { 11 edges { 12 node { 13 id 14 slug 15 updated_at 16 feature_image 17 } 18 } 19 } 20 allGhostPage { 21 edges { 22 node { 23 id 24 slug 25 updated_at 26 feature_image 27 } 28 } 29 } 30 allGhostTag { 31 edges { 32 node { 33 id 34 slug 35 feature_image 36 } 37 } 38 } 39 allGhostAuthor { 40 edges { 41 node { 42 id 43 slug 44 profile_image 45 } 46 } 47 } 48 }`, 49 // The filepath and name to Index Sitemap. Defaults to '/sitemap.xml'. 50 output: "/custom-sitemap.xml", 51 mapping: { 52 // Each data type can be mapped to a predefined sitemap 53 // Routes can be grouped in one of: posts, tags, authors, pages, or a custom name 54 // The default sitemap - if none is passed - will be pages 55 allGhostPost: { 56 sitemap: `posts`, 57 // Add a query level prefix to slugs, Don't get confused with global path prefix from Gatsby 58 // This will add a prefix to this particular sitemap only 59 prefix: 'your-prefix/', 60 // Custom Serializer 61 serializer: (edges,dataQuery) => { 62 // you can do something with all data from the query. 63 // For exemple in allSitePages you don't have the date update. 64 return edges.map(({ node }) => { 65 (...) // Custom logic to change final sitemap. 66 }) 67 } 68 }, 69 allGhostTag: { 70 sitemap: `tags`, 71 }, 72 allGhostAuthor: { 73 sitemap: `authors`, 74 }, 75 allGhostPage: { 76 sitemap: `pages`, 77 }, 78 }, 79 exclude: [ 80 `/dev-404-page`, 81 `/404`, 82 `/404.html`, 83 `/offline-plugin-app-shell-fallback`, 84 `/my-excluded-page`, 85 /(\/)?hash-\S*/, // you can also pass valid RegExp to exclude internal tags for example 86 ], 87 createLinkInHead: true, // optional: create a link in the `<head>` of your site 88 addUncaughtPages: true, // optional: will fill up pages that are not caught by queries and mapping and list them under `sitemap-pages.xml` 89 additionalSitemaps: [ // optional: add additional sitemaps, which are e. g. generated somewhere else, but need to be indexed for this domain 90 { 91 name: `my-other-posts`, 92 url: `/blog/sitemap-posts.xml`, 93 }, 94 { 95 url: `https://example.com/sitemap.xml`, 96 }, 97 ], 98 } 99 } 100]
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
65 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More