-
Notifications
You must be signed in to change notification settings - Fork 3
/
sitemap.xml
executable file
·39 lines (39 loc) · 1.28 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
39
---
layout: compress
sitemap:
exclude: true
---
<?xml version="1.0" encoding="UTF-8"?>
<!-- generated-on="{{ site.time | date_to_rfc822 }}" -->
<urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:image="https://www.google.com/schemas/sitemap-image/1.1">
{% for page in site.html_pages %}
{% unless page.sitemap.exclude %}
<url>
<loc>{{ site.url }}{{ page.url | remove: "index.html" }}</loc>
{% if page.sitemap.lastmod %}
<lastmod>{{ page.sitemap.lastmod | date: "%Y-%m-%d" }}</lastmod>
{% elsif page.date %}
<lastmod>{{ page.date | date_to_xmlschema }}</lastmod>
{% else %}
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
{% endif %}
{% if page.sitemap.changefreq %}
<changefreq>{{ page.sitemap.changefreq }}</changefreq>
{% else %}
<changefreq>weekly</changefreq>
{% endif %}
{% if page.sitemap.priority %}
<priority>{{ page.sitemap.priority }}</priority>
{% else %}
<priority>0.5</priority>
{% endif %}
{% if page.sitemap.images %}
{% for page_image in page.sitemap.images %}
{% include image4sitemap.html image=page_image %}
{% endfor %}
{% endif %}
</url>
{% endunless %}
{% endfor %}
</urlset>