-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsitemap.xml
21 lines (21 loc) · 1.04 KB
/
sitemap.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset 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" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% capture site_url %}{% if site.url %}{{ site.url }}{% else %}{{ site.github.url }}{% endif %}{% endcapture %}
{% for post in site.posts %}{% unless post.sitemap == false %}
<url>
<loc>{{ site_url }}{{ post.url | remove: '.html' }}</loc>
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
<priority>0.8</priority>
</url>
{% endunless %}{% endfor %}
{% for post in site.html_pages %}{% unless post.sitemap == false %}
<url>
<loc>{{ site_url }}{{ post.url | remove: 'index' | remove: '.html' }}</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>weekly</changefreq>
<priority>{% if post.url == "/" or post.url == "/index.html" %}1.0{% else %}0.7{% endif %}</priority>
</url>
{% endunless %}{% endfor %}
</urlset>