{"_id":"@adapttive/plugin-sitemap","name":"@adapttive/plugin-sitemap","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"version":"1.0.0","name":"@adapttive/plugin-sitemap","description":"Generate sitemap for Gridsome sites","homepage":"https://github.com/adapttive/gridsome/tree/master/packages/plugin-sitemap#readme","repository":{"type":"git","url":"git+https://github.com/adapttive/gridsome.git#master"},"main":"index.js","license":"MIT","keywords":["gridsome","gridsome-plugin","sitemap","seo"],"dependencies":{"fs-extra":"^7.0.0","micromatch":"^3.1.10","sitemap":"^2.1.0"},"publishConfig":{"access":"public"},"engines":{"node":"^12.13.0 || ^14.0.0 || >=16.0.0"},"gitHead":"e396e60ddb9435813dc56cc2d1f98c91c7d64367","bugs":{"url":"https://github.com/adapttive/gridsome/issues"},"_id":"@adapttive/plugin-sitemap@1.0.0","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-RziVZ3f7n5siPj57i/zvbGx6lurqRXMcsAkmkzMJyHCiX/4DSlUQMxNdjyM065UWHRCSw5Xu1QxILbgmT0n6+A==","shasum":"4ec00e54695d64a0b11a4b38a23d4aee184f0236","tarball":"https://registry.npmjs.org/@adapttive/plugin-sitemap/-/plugin-sitemap-1.0.0.tgz","fileCount":4,"unpackedSize":8853,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA4wUwrdR97lSYOPU6+WkQD1/evRwS0znUJwn4cmxuXhAiB+5X0maLB7yjwcXupf81/YA0W7x/tCnqe2oUJ1/CxKPg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/61YACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrJNg/+IcTiAq6GKE8SEJb4zLY66CMEpBuA/+Q7USsZf97V4BHf89i7\r\nF+X2Tj3J6u0AOfEQqHjCt+3OOpZqX0o6FdpW1uDpyVHTA68lnhTLHvtQJvYp\r\nkj9AqSypDuPDi1jWP1Eny+/Vn+1itBDlUUd4ger3o0D7UVrfh6/p6Uwu3REN\r\nuwU1irxp6Fcxj4UkUOylqs8FmAiBIytGticR338dO4CqAH3AC3LHFrFYUyg0\r\nfWcwF2NrnEdPnR438DiDWrJAXV8b8iCuoyN2gDpk4I9RDNfpT+NMNI9MiDzD\r\nNA3TsMS5uUUTfr7p6idKZeuDfyv413YcVzOpP6Ljf650ZMN7fJQyr7Fq7P/x\r\nl/PSPgEingeTcynRQ8Yf2TFK64ZQbCY8ntGmosAgVz2MFDY4GZRpS/8rcE4C\r\n2UIo5jRXYsd2EczP/a0tirIhpVuv3dmNePHEr+H1x+Z7X5SH9SiFTYLL5efO\r\n1lHInWlSqdJ6l9utVFhv33WIriMH+WLFjCoN3B2bH5tfIjqWrKVEQXhBeuQm\r\nipUtUC21iKdF74Wn4yg0w6ukd+lFgBnc7+c+Swfld3OSLZ5g2vJgenP18Kye\r\n5jg9sTUAYFAbYICwVo+BvkOyQk6494Bc7xoxooBhPEBm4gqGEztZsIZeK4wx\r\n8hTROCQeaS5tGwCot3b0pWjeG9gYU+/Pido=\r\n=/A7l\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"milindsingh","email":"milind7@live.com"},"directories":{},"maintainers":[{"name":"milindsingh","email":"milind7@live.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-sitemap_1.0.0_1677700440478_0.8758515751978087"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-01T19:54:00.376Z","1.0.0":"2023-03-01T19:54:00.610Z","modified":"2023-03-01T19:54:00.748Z"},"maintainers":[{"name":"milindsingh","email":"milind7@live.com"}],"description":"Generate sitemap for Gridsome sites","homepage":"https://github.com/adapttive/gridsome/tree/master/packages/plugin-sitemap#readme","keywords":["gridsome","gridsome-plugin","sitemap","seo"],"repository":{"type":"git","url":"git+https://github.com/adapttive/gridsome.git#master"},"bugs":{"url":"https://github.com/adapttive/gridsome/issues"},"license":"MIT","readme":"# @gridsome/plugin-sitemap\n\n> Generate sitemap for Gridsome sites\n\n## Install\n\n- `npm install @gridsome/plugin-sitemap`\n- `yarn add @gridsome/plugin-sitemap`\n- `pnpm install @gridsome/plugin-sitemap`\n\n## Usage\n\nMake sure [`siteUrl`](https://gridsome.org/docs/config/#siteurl) is set in your project config. All rendered pages (except `/404`) are included in the resulting XML. The `config` option can be used to set a custom `changefreq` or `priority` per path or a glob pattern for multiple paths.\n\n```js\nmodule.exports = {\n  plugins: [\n    {\n      use: '@gridsome/plugin-sitemap',\n      options: {\n        exclude: ['/exclude-me'],\n        config: {\n          '/articles/*': {\n            changefreq: 'weekly',\n            priority: 0.5,\n            lastmod: '2020-02-19',\n          },\n          '/about': {\n            changefreq: 'monthly',\n            priority: 0.7,\n            lastmod: '2020-05-12',\n          }\n        }\n      }\n    }\n  ]\n}\n```\n\n### Options\n\n#### output\n\n- Type: `string`\n- Default `/sitemap.xml`\n\nYour sitemap will be available at `/sitemap.xml`.\n\n#### config\n\n- Type: `object`\n\nSet custom config for specific URLs.\n\n```js\nconfig: {\n  '/articles/*': {\n    changefreq: 'weekly',\n    priority: 0.5,\n    lastmod: '2020-02-19',\n  },\n  '/about': {\n    changefreq: 'monthly',\n    priority: 0.7,\n    lastmod: '2020-05-12',\n  }\n}\n```\n\n#### include\n\n- Type: `string[]`\n\nSpecify which paths to include in the sitemap. Each path can be a glob pattern.\n\n```js\ninclude: ['/blog', '/blog/**']\n```\n\n#### exclude\n\n- Type: `string[]`\n\nSpecify which paths to exclude from the sitemap. Each path can be a glob pattern. The `/404` path is always excluded.\n\n#### staticUrls\n\n- Type: `Array`\n\nAdd custom URLs to the sitemap.\n\n```js\nmodule.exports = {\n  plugins: [\n    {\n      use: '@gridsome/plugin-sitemap',\n      options: {\n        staticUrls: [\n          {\n            url: '/images/',\n            img: [\n              {\n                url: '/images/img1.jpg',\n                caption: 'Image One',\n                title: 'The Title of Image One',\n                geoLocation: 'Trondheim, Norway',\n                license: 'https://creativecommons.org/licenses/by/4.0/'\n              },\n              {\n                url: '/images/img2.jpg',\n                caption: 'Image Two',\n                title: 'The Title of Image Two',\n                geoLocation: 'Trondheim, Norway',\n                license: 'https://creativecommons.org/licenses/by/4.0/'\n              }\n            ]\n          }\n        ]\n      }\n    }\n  ]\n}\n```\n","readmeFilename":"README.md"}