-
Notifications
You must be signed in to change notification settings - Fork 1
/
sitemap.xml
39 lines (35 loc) · 1.34 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
39
---
layout: null
title : Sitemap
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% assign site_url = site.production_url | append:'/' %}
<url>
<loc>{{ site_url }}</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
{% for post in site.posts %}
<url>
<loc>{{site.production_url}}{{ post.url }}</loc>
{% if post.last_updated %}<lastmod>{{ post.last_updated | date_to_xmlschema }}</lastmod>
{% elsif post.date %}<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
{% else %}<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>{% endif %}
<changefreq>monthly</changefreq>
<priority>0.6</priority>
</url>
{% endfor %}
{% for page in site.pages %}
{% if page.layout != null and page.layout != 'feed' and page.url != "/" %}{% if page.url contains ".html" %}{% continue %}{% endif %}
<url>
<loc>{{site.production_url}}{{ page.url | remove: 'index.html' }}</loc>
{% if page.last_updated %}<lastmod>{{ page.last_updated | date_to_xmlschema }}</lastmod>
{% elsif page.date %}<lastmod>{{ page.date | date_to_xmlschema }}</lastmod>
{% else %}<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>{% endif %}
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
{% endif %}{% endfor %}
</urlset>