-
Notifications
You must be signed in to change notification settings - Fork 0
/
sitemap.xml
67 lines (63 loc) · 2.11 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>{{ site.url }}/tag/</loc>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>{{ site.url }}/wiki/index/</loc>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>{{ site.url }}/blog/</loc>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
{% for post in site.posts %}
<url>
<loc>{{ site.url }}{{ post.url }}</loc>
{% if post.updated == null %}
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
{% else %}
<lastmod>{{ post.updated | date_to_xmlschema }}</lastmod>
{% endif %}
{% if post.sitemap.changefreq == null %}
<changefreq>daily</changefreq>
{% else %}
<changefreq>{{ post.sitemap.changefreq }}</changefreq>
{% endif %}
{% if post.sitemap.priority == null %}
<priority>0.5</priority>
{% else %}
<priority>{{ post.sitemap.priority }}</priority>
{% endif %}
</url>
{% endfor %}
{% assign documents = site.wiki %}
{% for doc in documents %}
{% if doc.public == true and doc.title != 'wiki index'%}
<url>
<loc>{{ site.url }}{{ doc.url }}</loc>
{% if doc.updated == null %}
<lastmod>{{ doc.date | date_to_xmlschema }}</lastmod>
{% else %}
<lastmod>{{ doc.updated | date_to_xmlschema }}</lastmod>
{% endif %}
{% if doc.sitemap.changefreq == null %}
<changefreq>daily</changefreq>
{% else %}
<changefreq>{{ doc.sitemap.changefreq }}</changefreq>
{% endif %}
{% if doc.sitemap.priority == null %}
<priority>0.5</priority>
{% else %}
<priority>{{ doc.sitemap.priority }}</priority>
{% endif %}
</url>
{% endif %}
{% endfor %}
</urlset>