Create sitemap.xml

This commit is contained in:
John Mulhausen 2016-10-10 16:22:46 -07:00 committed by GitHub
parent bdaafb8dac
commit f1bdec69ec
1 changed files with 18 additions and 0 deletions

18
sitemap.xml Normal file
View File

@ -0,0 +1,18 @@
---
---
<?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">
<url>
<loc>https://docs.docker.com/</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
</url>
{% for page in site.pages %}<url>
<loc>https://docs.docker.com{{ page.url }}</loc>
<lastmod>{% if page.date %}{{ page.date | date_to_xmlschema }}{% else %}{{ site.time | date_to_xmlschema }}{% endif %}</lastmod>
</url>{% endfor %}
</urlset>