-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsitemap.xml
More file actions
20 lines (20 loc) · 772 Bytes
/
sitemap.xml
File metadata and controls
20 lines (20 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="{{ '/sitemap.xsl' | prepend: site.baseurl }}"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for post in site.posts %}
<url>
<loc>{{ post.url | prepend: site.baseurl | prepend: site.url | xml_escape }}</loc>
<lastmod>{{ site.time | date_to_xmlschema | xml_escape }}</lastmod>
<changefreq>daily</changefreq>
</url>
{% endfor %}
{% for post in site.pages %}{% if post.url contains '/read/' or post.url == '/' %}
<url>
<loc>{{ post.url | prepend: site.baseurl | prepend: site.url | xml_escape }}</loc>
<lastmod>{{ site.time | date_to_xmlschema | xml_escape }}</lastmod>
<changefreq>daily</changefreq>
</url>
{% endif %}{% endfor %}
</urlset>