forked from swiftlang/swift-org-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sitemap.xml
26 lines (25 loc) · 858 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
---
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% assign pages = site.pages | sort: 'url' %}
{% for page in pages %}
{% unless page.layout %}{% continue %}{% endunless %}
{% if page.robots == "noindex" %}{% continue %}{% endif %}
{% if page.url contains "/staging-" %}{% continue %}{% endif %}
<url>
<loc>{{ site.url }}{{ page.url }}</loc>
{% if page.url == "/" %}
<priority>1.0</priority>
{% else %}
<priority>0.7</priority>
{% endif %}
</url>
{% endfor %}
{% for post in site.posts %}
<url>
<loc>{{ site.url }}{{ post.url }}</loc>
<lastmod>{{ post.date | date: "%Y-%m-%d"}}</lastmod>
</url>
{% endfor %}
</urlset>