-
Notifications
You must be signed in to change notification settings - Fork 23
/
sitemap.xml
38 lines (35 loc) · 1.36 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
---
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<!-- Site/Blog Indexes -->
<url>
<loc>{{ site.url }}</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>{{ site.url }}/blog/</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<!-- Posts -->{% for post in site.posts %}
<url>
<loc>{{ site.url }}{{ post.url }}</loc>
<lastmod>{% if post.updated == null %}{{ post.date | date: '%Y-%m-%d' }}{% else %}{{ post.updated | date: '%Y-%m-%d' }}{% endif %}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.9</priority>
</url>{% endfor %}
<!-- Pages -->{% for node in site.pages %}{% comment %}
{% endcomment %}{% capture path %}{{ node.path | split:'/' | first }}{% endcapture %}{% comment %}
{% endcomment %}{% capture url %}{{ node.url | remove_first:'/' | remove: 'index.html' | split:'/' | first }}{% endcapture %}{% comment %}
{% endcomment %}{% if path == '_pages' and node.noindex != true and url != '' and url != 'blog' %}
<url>
<loc>{{ site.url }}{{ node.url }}</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>{% endif %}{% endfor %}
</urlset>