-
Notifications
You must be signed in to change notification settings - Fork 0
/
sitemap.xml
29 lines (28 loc) · 1.24 KB
/
sitemap.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
permalink: "/sitemap.xml"
sitemap:
changefreq: weekly
priority: 1.0
---
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="{{ '/sitemap.xsl' | absolute_url }}"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd http://www.google.com/schemas/sitemap-image/1.1 http://www.google.com/schemas/sitemap-image/1.1/sitemap-image.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{%- for collection in site.collections %}
{%- for post in collection.docs %}
{%- unless collection.output == false %}
<url>
<loc>{{ site.url }}/#{{ post.url }}</loc>
<lastmod>{{ post.last_modified_at | date_to_xmlschema }}</lastmod>
<changefreq>{{ post.sitemap.changefreq }}</changefreq>
<priority>{{ post.sitemap.priority }}</priority>
</url>
{%- endunless -%}
{%- endfor -%}
{% endfor %}
<url>
<loc>{{ '/sitemap.xml' | absolute_url }}</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
</urlset>