-
Notifications
You must be signed in to change notification settings - Fork 0
/
sitemap.xml
43 lines (41 loc) · 1.26 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
40
41
42
43
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">
<!-- Homepage -->
<url>
<loc>{{ site.url }}/</loc>
<lastmod>{{ site.time | date: "%Y-%m-%d" }}</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<!-- Posts pages -->
{% for page in site.posts %}
<url>
<loc>{{ site.url }}{{ page.url }}</loc>
{% if page.last_updated %}
<lastmod>{{ page.last_updated | date: "%Y-%m-%d" }}</lastmod>
{% elsif page.date %}
<lastmod>{{ page.date | date: "%Y-%m-%d" }}</lastmod>
{% else %}
<lastmod>{{ site.time | date: "%Y-%m-%d" }}</lastmod>
{% endif %}
</url>
{% endfor %}
<!-- Static pages -->
{% for page in site.html_pages %}
<url>
<loc>{{ site.url }}{{ page.url }}</loc>
{% if page.last_updated %}
<lastmod>{{ page.last_updated | date: "%Y-%m-%d" }}</lastmod>
{% elsif page.date %}
<lastmod>{{ page.date | date: "%Y-%m-%d" }}</lastmod>
{% else %}
<lastmod>{{ site.time | date: "%Y-%m-%d" }}</lastmod>
{% endif %}
{% if page.changefreq %}<changefreq>{{ page.changefreq }}</changefreq>{% endif %}
{% if page.priority %}<priority>{{ page.priority }}</priority>{% endif %}
</url>
{% endfor %}
</urlset>