forked from ogaclejapan/materi-for-jekyll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsitemap.xml
40 lines (34 loc) · 1023 Bytes
/
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
---
layout: null
title : Sitemaps
---
<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>{{ site.url }}{{ site.baseurl }}/</loc>
<lastmod>{{ site.time | date:'%Y-%m-%d' }}</lastmod>
<changefreq>weekly</changefreq>
</url>
{% for post in site.posts %}
<url>
<loc>{{ site.url }}{{ site.baseurl }}{{ post.url }}</loc>
<lastmod>{% if post.modified %}{{ post.modified }}{% else %}{{ post.date | date:'%Y-%m-%d' }}{% endif %}</lastmod>
<changefreq>never</changefreq>
</url>
{% endfor %}
<url>
<loc>{{ site.url }}{{ site.baseurl }}/tags/</loc>
<lastmod>{{ site.time | date:'%Y-%m-%d' }}</lastmod>
<changefreq>weekly</changefreq>
</url>
{% for tag in site.tags %}
{% assign tag_id = tag[0] %}
{% if site.data.tags[tag_id] %}
<url>
<loc>{{ site.url }}{{ site.baseurl }}/tags/{{ tag_id }}/</loc>
<lastmod>{{ site.time | date:'%Y-%m-%d' }}</lastmod>
<changefreq>weekly</changefreq>
</url>
{% endif %}
{% endfor %}
</urlset>