@quasibit/eleventy-plugin-sitemap
Version:
Eleventy plugin to generate a sitemap.
17 lines (14 loc) • 345 B
JavaScript
;
const sitemap = require("../../.eleventy");
/**
* Standard example using a few posts and the all collection.
*
* @param {object} eleventyConfig Eleventy configuration object.
*/
module.exports = (eleventyConfig) => {
eleventyConfig.addPlugin(sitemap, {
sitemap: {
hostname: "https://example.com",
},
});
};