-
Notifications
You must be signed in to change notification settings - Fork 15
/
sitemap.xml
35 lines (33 loc) · 958 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
---
# Remember to set production_url in your _config.yml file!
title : Sitemap
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for post in site.posts %}
<url>
<loc>{{ site.production_url }}{{ post.url }}</loc>
<changefreq>daily</changefreq>
<lastmod>{{ post.date | date: "%Y-%m-%d"}}</lastmod>
<priority>1.0</priority>
</url>
{% endfor %}
{% for page in site.pages %}
{% if page.layout != nil %}
{% if page.layout != 'feed' %}
{% if page.group == 'navigation' %}
<url>
<loc>{{ site.production_url }}{{ page.url | remove: 'index.html' }}</loc>
<changefreq>monthly</changefreq>
<priority>0.80</priority>
</url>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
<url>
<loc>{{ site.production_url }}</loc>
<changefreq>daily</changefreq>
<priority>0.6</priority>
</url>
</urlset>