views/page-sitemap.ejs
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="sitemap.xsl"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<% include encodeURLAndEscape.ejs %>
<% include root-page.ejs %>
<% data.items.forEach(function(page){ %>
<% if (page.sitemap_priority == undefined || page.sitemap_priority > 0) { %>
<url>
<loc><%- encodeURLAndEscape(page.permalink.replace('index.html', '')) %></loc>
<lastmod><%= page.updated.toISOString() || page.date.toISOString() %></lastmod>
<changefreq>weekly</changefreq>
<priority><%= page.sitemap_priority || (config.sitemap && config.sitemap.page_priority) || 0.8 %></priority>
</url>
<% } %>
<% }) %>
</urlset>
<% include meta %>