<?xml version="1.0" encoding="UTF-8"?>
<%- include('../layouts/functions') -%>

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <% if (site && Array.isArray(site.pages)) {
    site.pages
      .sort(sortByPath)
      .forEach((page) => { -%>
        <url>
          <loc><%= page.path %></loc>
          <lastmod><%= (new Date(page.date_upd || page.date_pub)).toJSON() %></lastmod>
        </url>
      <% });
  } -%>

</urlset>
