-
Notifications
You must be signed in to change notification settings - Fork 63
/
sitemap.xml
34 lines (33 loc) · 1.35 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
30
31
32
33
34
---
layout: null
sitemap:
exclude: "yes"
---
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="sitemap.xsl"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% assign pages = site.pages | sort: 'url' %}
{% for page in pages %}
{%if page.sitemap.exclude != "yes" %}
<url>
<loc>{{ site.url }}{{ page.url | remove: "index.html" }}</loc>
<lastmod>{{ page.date | default: site.time | date_to_xmlschema }}</lastmod>
<changefreq>{{ page.sitemap.changefreq | default: "monthly" }}</changefreq>
<priority>{{ page.sitemap.priority | default: "1.0" }}</priority>
</url>
{% endif %}
{% endfor %}
{% for collection in site.collections %}
{% assign pages = collection.docs | sort: 'url' %}
{% for page in pages %}
{%if page.sitemap.exclude != "yes" %}
<url>
<loc>{{ site.url }}{{ page.url | remove: "index.html" }}</loc>
<lastmod>{{ page.date | default: site.time | date_to_xmlschema }}</lastmod>
<changefreq>{{ page.sitemap.changefreq | default: "monthly" }}</changefreq>
<priority>{{ page.sitemap.priority | default: "1.0" }}</priority>
</url>
{% endif %}
{% endfor %}
{% endfor %}
</urlset>