-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsitemap.xml
More file actions
31 lines (29 loc) · 831 Bytes
/
Copy pathsitemap.xml
File metadata and controls
31 lines (29 loc) · 831 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
29
30
31
---
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://{{ site.domain }}/</loc>
<changefreq>daily</changefreq>
</url>
{% for post in site.posts %}
<url>
<loc>http://{{ site.domain }}{{ post.url }}</loc>
<lastmod>{{ post.date | date: "%Y-%m-%d" }}</lastmod>
</url>
{% endfor %}
{% for page in site.pages %}
{% if page.url != '/index.html' %}
{% if page.layout != 'feed' %}
{% if page.layout != nil %}
<url>
<loc>http://{{ site.domain }}{{ page.url | remove: 'index.html' }}</loc>
{% if page.date %}
<lastmod>{{ page.date | date: "%Y-%m-%d" }}</lastmod>
{% endif %}
</url>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
</urlset>