ludoviclefevre/hexo-generator-seo-friendly-sitemap

View on GitHub
views/category-sitemap.ejs

Summary

Maintainability
Test Coverage
<?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(category){ %>
    <url>
        <loc><%- encodeURLAndEscape(category.permalink) %></loc>
        <lastmod><%= category.updated.toISOString() %></lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.2</priority>
    </url>
<% }) %>
</urlset>
<% include meta %>