-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsitemap.xml
47 lines (43 loc) · 1.24 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
title : Sitemap
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc> {{ site.production_url }}/</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
{% for post in site.posts %}
<url>
<loc>{{site.production_url}}{{ post.url }}</loc>
{% if post.last_updated %}
<lastmod>{{ post.last_updated | date_to_xmlschema }}</lastmod>
{% elsif post.date %}
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
{% else %}
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
{% endif %}
<changefreq>monthly</changefreq>
<priority>0.6</priority>
</url>
{% endfor %}
{% for page in site.pages %}
{% if page.layout != null and page.layout != 'feed' %}
<url>
<loc>{{site.production_url}}{{ page.url | remove: 'index.html' }}</loc>
{% if page.last_updated %}
<lastmod>{{ page.last_updated | date_to_xmlschema }}</lastmod>
{% elsif page.date %}
<lastmod>{{ page.date | date_to_xmlschema }}</lastmod>
{% else %}
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
{% endif %}
<changefreq>monthly</changefreq>
<priority>0.6</priority>
</url>
{% endif %}
{% endfor %}
</urlset>