-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsitemap.xml
More file actions
55 lines (54 loc) · 1.64 KB
/
sitemap.xml
File metadata and controls
55 lines (54 loc) · 1.64 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">
{% for post in site.posts %}
{% if post.published %}
<url>
<loc>{{ post.url | prepend: site.baseurl | prepend: site.url }}</loc>
{% if post.last_modified_at %}
<lastmod>{{ post.last_modified_at | date_to_xmlschema }}</lastmod>
{% elsif post.date %}
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
{% else %}
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
{% endif %}
{% if post.change_frequency %}
<changefreq>{{ post.change_frequency }}</changefreq>
{% else %}
<changefreq>monthly</changefreq>
{% endif %}
{% if post.priority %}
<priority>{{ post.priority }}</priority>
{% else %}
<priority>0.5</priority>
{% endif %}
</url>
{% endif %}
{% endfor %}
{% for page in site.pages %}
{% if page.exclusion_from_sitemap == false %}
<url>
<loc>{{ page.url | remove: "index.html" | prepend: site.baseurl | prepend: site.url }}</loc>
{% if page.last_modified_at %}
<lastmod>{{ page.last_modified_at | date_to_xmlschema }}</lastmod>
{% elsif page.date %}
<lastmod>{{ page.date | date_to_xmlschema }}</lastmod>
{% else %}
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
{% endif %}
{% if page.change_frequency %}
<changefreq>{{ page.change_frequency }}</changefreq>
{% else %}
<changefreq>monthly</changefreq>
{% endif %}
{% if page.priority %}
<priority>{{ page.priority }}</priority>
{% else %}
<priority>0.3</priority>
{% endif %}
</url>
{% endif %}
{% endfor %}
</urlset>