-
Notifications
You must be signed in to change notification settings - Fork 12
/
sitemap.xml
47 lines (47 loc) · 1.88 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
---
layout: null
---
<?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">
{% capture site_url %}{% if site.url %}{{ site.url | append: site.baseurl }}{% else %}{{ site.github.url }}{% endif %}{% endcapture %}
{% for post in site.posts %}{% unless post.sitemap == false %}
<url>
<loc>{{ post.url | prepend: site_url }}</loc>
{% if post.last_modified_at %}
<lastmod>{{ post.last_modified_at | date_to_xmlschema }}</lastmod>
{% else %}
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
{% endif %}
</url>
{% endunless %}{% endfor %}
{% for page in site.html_pages %}{% unless page.sitemap == false %}
<url>
<loc>{{ page.url | replace:'/index.html','/' | prepend: site_url }}</loc>
{% if page.last_modified_at %}
<lastmod>{{ page.last_modified_at | date_to_xmlschema }}</lastmod>
{% endif %}
</url>
{% endunless %}{% endfor %}
{% for challenge in site.challenges %}
<url>
<loc>{{ challenge.url | replace:'/index.html','/' | prepend: site_url }}</loc>
{% if challenge.last_modified_at %}
<lastmod>{{ challenge.last_modified_at | date_to_xmlschema }}</lastmod>
{% endif %}
</url>
{% endfor %}
{% for historical-challenge in site.all-challenges %}
<url>
<loc>{{ historical-challenge.url | replace:'/index.html','/' | prepend: site_url }}</loc>
{% if historical-challenge.last_modified_at %}
<lastmod>{{ historical-challenge.last_modified_at | date_to_xmlschema }}</lastmod>
{% endif %}
</url>
{% endfor %}
{% for file in site.html_files %}
<url>
<loc>{{ file.path | prepend: site_url }}</loc>
<lastmod>{{ file.modified_time | date_to_xmlschema }}</lastmod>
</url>
{% endfor %}
</urlset>