forked from thomaszhao/thomaszhao.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsitemap.xml
More file actions
28 lines (25 loc) · 678 Bytes
/
sitemap.xml
File metadata and controls
28 lines (25 loc) · 678 Bytes
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
---
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: "%Y-%m-%d" }}</lastmod>
<changefreq>daily</changefreq>
</url>
{% for page in site.posts %}
<url>
<loc>{{site.production_url}}{{ page.url }}</loc>
{% if page.last_updated %}
<lastmod>{{ page.last_updated | date: "%Y-%m-%d" }}</lastmod>
{% elsif page.date %}
<lastmod>{{ page.date | date: "%Y-%m-%d" }}</lastmod>
{% else %}
<lastmod>{{ site.time | date: "%Y-%m-%d" }}</lastmod>
{% endif %}
<changefreq>monthly</changefreq>
</url>
{% endfor %}
</urlset>