<?xml version=“1.0” encoding=“UTF-8”?> <urlset xmlns=“www.sitemaps.org/schemas/sitemap/0.9”>{% for page in site.html_pages %}
<url> <loc>{{ site.project.url }}{{ page.url }}</loc> <lastmod>{% if page.sitemap-lastmod %}{{ page.sitemap-lastmod }}{% else %}{{ "now" | date: "%Y-%m-%d" }}{% endif %}</lastmod> <changefreq>{% if page.sitemap-changefreq %}{{ page.sitemap-changefreq }}{% else %}monthly{% endif %}</changefreq> <priority>{% if page.sitemap-priority %}{{ page.sitemap-priority }}{% else %}0.5{% endif %}</priority> </url>{% endfor %}{% for post in site.posts %} <url> <loc>{{ site.project.url }}{{ post.url }}</loc> <lastmod>{% if post.sitemap-lastmod %}{{ post.sitemap-lastmod }}{% else %}{{ post.date | date: "%Y-%m-%d" }}{% endif %}</lastmod> <changefreq>{% if post.sitemap-changefreq %}{{ post.sitemap-changefreq }}{% else %}monthly{% endif %}</changefreq> <priority>{% if post.sitemap-priority %}{{ post.sitemap-priority }}{% else %}0.5{% endif %}</priority> </url>{% endfor %}
</urlset>