-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsitemap.xml
More file actions
22 lines (22 loc) · 788 Bytes
/
Copy pathsitemap.xml
File metadata and controls
22 lines (22 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
layout: null
permalink: /sitemap.xml
sitemap: false
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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">
{%- assign posts = site.posts | where_exp: "post", "post.sitemap != false" -%}
{%- for post in posts %}
<url>
<loc>{{ post.url | absolute_url | xml_escape }}</loc>
{%- if post.last_modified_at or post.date %}
<lastmod>{{ post.last_modified_at | default: post.date | date_to_xmlschema }}</lastmod>
{%- endif %}
</url>
{%- endfor %}
<url>
<loc>{{ '/' | absolute_url | xml_escape }}</loc>
</url>
</urlset>