-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsitemap.xml
32 lines (32 loc) · 1.11 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
---
# Remember to set production_url in your _config.yml file!
title : Sitemap
icon: sitemap
---
<?xml version="1.0" encoding="utf-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
{% for post in site.posts %}
{% unless post.hide %}
<url>
<loc>http://{{site.production_url}}/{{ post.url }}</loc>
<lastmod>{{ post.date | date: '%Y-%m-%dT%H:%M:%S+02:00'}}</lastmod>
<changefreq>monthly</changefreq>
<priority>1.00</priority>
</url>
{% endunless %}
{% endfor %}
{% for page in site.pages %}
{% if page.layout != 'nil' and page.layout != 'feed' %}
<url>
<loc>http://{{site.production_url}}/{{ page.url }}</loc>
<lastmod>{{ site.time | date: '%Y-%m-%dT%H:%M:%S+02:00'}}</lastmod>
<changefreq>weekly</changefreq>
<priority>0.80</priority>
</url>
{% endif %}
{% endfor %}
</urlset>