src/sitemap-generator.js
/**
   * The default configuration.
   *
   * @static
   * @returns {SitemapGeneratorConfig} The configuration.
   * @example <caption>SitemapGenerator.defaultConfig()</caption>
   * const config = { ...SitemapGenerator.defaultConfig(), ...context.config[SitemapGenerator.configKey] };
   */
The default configuration.
@static
@returns {SitemapGeneratorConfig} The configuration.
The default configuration . @static @returns { SitemapGeneratorConfig } The configuration .
static defaultConfig() {
    return {
      urls: [],
      url_filters: [],
      base_url: '',
      directory: '',
      filename: 'sitemap',
      extension: 'xml',
      page_priority: '0.80',
      xml_header: '<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">',
      xml_footer: '</urlset>',
    };
  }
static defaultConfig ( ) { return { urls : [ ] , url_filters : [ ] , base_url : '' , directory : '' , filename : 'sitemap' , extension : 'xml' , page_priority : '0.80' , xml_header : '<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">' , xml_footer : '</urlset>' , } ; }
The default configuration.
The default configuration .