-
Notifications
You must be signed in to change notification settings - Fork 4
/
sitemap.xml
26 lines (21 loc) · 834 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
---
layout: null
---
<?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">
{% for post in site.posts %}
{% comment %}
> A post can have publish to false to unpost/draft it
> If the post has no publish keyword or publish set to anything other than fasely,
it's published
> So, don't confuse "unless post.publish == false" with "if post.publish"
{% endcomment %}
{% unless post.publish == false %}
<url>
<loc>{{ site.url }}{{ post.url }}</loc>
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
<priority>0.5</priority>
</url>
{% endunless %}
{% endfor %}
</urlset>