UNPKG

gatsby-plugin-multi-language-sitemap

Version:

Gatsby plugin that automatically creates a sitemap supporting multi-language for your site

85 lines (84 loc) 2.39 kB
// just a test // const { resolveSitemapAndIndex } = require('./gatsby-node') // resolveSitemapAndIndex({ // hostname: 'https://www.aftership.com', // publicBasePath: `/sitemap/demo`, // destinationDir: `public/sitemap`, // sourceData: [ // { // shorturl: '/test', // url: 'https://www.aftership.com/test/', // changefreq: 'daily', // priority: 0.7 // }, // { // shorturl: '/test/editor', // url: 'https://www.aftership.com/test/editor', // changefreq: 'daily', // priority: 0.7 // }, // { // shorturl: '/amp/editor', // url: 'https://www.aftership.com/test/amp/editor', // changefreq: 'daily', // priority: 0.7 // }, // { // shorturl: '/amp/apps/mazet', // url: 'https://www.aftership.com/test/amp/apps/mazet', // changefreq: 'daily', // priority: 0.7 // }, // { // shorturl: '/apps/legion-express', // url: 'https://www.aftership.com/test/apps/legion-express', // changefreq: 'daily', // priority: 0.7 // }, // { // shorturl: '/amp/apps/legion-express', // url: 'https://www.aftership.com/test/amp/apps/legion-express', // changefreq: 'daily', // priority: 0.7 // }, // { // shorturl: '/zh-Hans/features', // url: 'https://www.aftership.com/test/zh-Hans/features', // changefreq: 'daily', // priority: 0.7 // }, // { // shorturl: '/features', // url: 'https://www.aftership.com/test/zh-Hans/features', // changefreq: 'daily', // priority: 0.7 // }, // { // shorturl: '/zh-Hans/', // url: 'https://www.aftership.com/test/zh-Hans/', // changefreq: 'daily', // priority: 0.7 // }, // { // shorturl: '/fr/features', // url: 'https://www.aftership.com/test/fr/features', // changefreq: 'daily', // priority: 0.7 // }, // { // shorturl: '/fr/', // url: 'https://www.aftership.com/test/fr/', // changefreq: 'daily', // priority: 0.7 // }, // { // shorturl: '/', // url: 'https://www.aftership.com/test/fr/', // changefreq: 'daily', // priority: 0.7 // } // ], // langs: ['fr', 'zh-Hans', // // jp and zh-Hant file won't generate, because we have no url items in list // 'jp', 'zh-Hant'] // })