<%- include('../layouts/functions') -%> <% if (site && Array.isArray(site.pages)) { site.pages .sort(sortByPath) .forEach((page) => { -%> <%= page.path %> <%= (new Date(page.date_upd || page.date_pub)).toJSON() %> <% }); } -%>