Sitemap

To define a sitemap, create a file called sitemap.xml in your pages/templates/ directory and add the following code:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    {% for page in site.pages %}
        {% if not page.noindex %}
            <url>
                <loc>
                    {{ page.url }}
                </loc>
                <lastmod>{{ site.build_time }}</lastmod>
            </url>
        {% endif %}
    {% endfor %}
</urlset>