-
Notifications
You must be signed in to change notification settings - Fork 0
/
sitemap.xml
130 lines (129 loc) · 4.96 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
---
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.9">
<!-- Posts -->
{% for post in site.posts %}
<url>
<loc>{% include canonical-url.html url=post.url %}</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
{% endfor %}
<!-- Pages -->
{% for page in site.pages %}
{% assign isallow = 1 %}
{% if site.data.config.disallow != null %}
{% for disallow in site.data.config.disallow %}
{% capture adis %}/{{ disallow}}{% endcapture %}
{% if page.url == adis %}
{% assign isallow = 0 %}
{% endif %}
{% endfor %}
{% endif %}
{% if page.layout != null and page.layout != 'feed' and page.permalink != '/404.html' and isallow == 1 %}
<url>
<loc>{% include canonical-url.html url=page.url %}</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
{% endif %}
{% endfor %}
<!-- Project documents -->
{% for project in site.data.projects %}
{% for project_doc in project.doc %}
{% if project_doc[1] != null %}
{% if project_doc[1] contains "/assets" first %}
<url>
<loc>{{ site.url }}{{ project_doc[1] }}</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>never</changefreq>
<priority>0.5</priority>
</url>
{% else %}
<url>
<loc>{{ project_doc[1] }}</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>never</changefreq>
<priority>0.5</priority>
</url>
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
<!-- Publications -->
{% for event in site.data.publications %}
{% for section_hash in event %}
{% for section in section_hash %}
{% if section.id != null %}
{% if section.pdf != null %}
<url>
{% if section.pdf contains "http://" first or section.pdf contains "https://" first %}
<loc>{{ section.pdf }}</loc>
{% else %}
<loc>{% include canonical-url.html url=section.pdf %}</loc>
{% endif %}
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>never</changefreq>
<priority>0.5</priority>
</url>
{% endif %}
{% if section.presentation != null %}
<url>
{% if section.presentation contains "http://" first or section.presentation contains "https://" first %}
<loc>{{ section.presentation }}</loc>
{% else %}
<loc>{% include canonical-url.html url=section.presentation %}</loc>
{% endif %}
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>never</changefreq>
<priority>0.5</priority>
</url>
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}
<!-- Talks -->
{% for event in site.data.talks %}
{% for section_hash in event %}
{% for section in section_hash %}
{% if section.id != null %}
{% if section.pdf != null %}
<url>
{% if section.pdf contains "http://" first or section.pdf contains "https://" first %}
<loc>{{ section.pdf }}</loc>
{% else %}
<loc>{% include canonical-url.html url=section.pdf %}</loc>
{% endif %}
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>never</changefreq>
<priority>0.5</priority>
</url>
{% endif %}
{% if section.presentation != null %}
<url>
{% if section.presentation contains "http://" first or section.presentation contains "https://" first %}
<loc>{{ section.presentation }}</loc>
{% else %}
<loc>{% include canonical-url.html url=section.presentation %}</loc>
{% endif %}
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>never</changefreq>
<priority>0.5</priority>
</url>
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}
<!-- Resume -->
<url>
<loc>{{ site.url }}{{ site.data.config.resume_path }}</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
</urlset>