-
Notifications
You must be signed in to change notification settings - Fork 2
/
sitemap.xml
38 lines (37 loc) · 1.25 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
35
36
37
38
---
layout: null
sitemap:
exclude: 'yes'
epages:
- { key: "starterkits", priority: 0.9 }
- { key: "showcases", priority: 0.8 }
- { key: "modules", priority: 0.7 }
- { key: "sfx", priority: 0.6 }
- { key: "gfx", priority: 0.6 }
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for page in site.pages %}
{%- if page.layout != nil and page.layout != 'feed' -%}
<url>
<loc>{{ site.url }}{{ page.url | remove: 'index.html' | xml_escape }}</loc>
{%- assign last_mod = page.date | date_to_xmlschema -%}
{%- if last_mod %}<lastmod>{{ last_mod }}</lastmod>{% endif %}
<priority>{{ page.priority | default: "0.1" }}</priority>
</url>
{%- endif %}
{% endfor %}
{% for epage in page.epages %}
{%- assign pages = site[epage.key] -%}
{% for page in pages %}
{%- if page.enabled != false -%}
<url>
<loc>{{ site.url }}{{ page.url | remove: 'index.html' | xml_escape }}</loc>
{%- assign last_mod = page.date | date_to_xmlschema -%}
{%- if last_mod %}<lastmod>{{ last_mod }}</lastmod>{% endif %}
<priority>{{ page.priority | default: epage.priority }}</priority>
</url>
{% endif %}
{% endfor %}
{% endfor %}
</urlset>