Add sitemap

This commit is contained in:
Rico Sta. Cruz 2017-09-24 03:23:43 +08:00
parent 82fd68dd9f
commit 9b6402d801
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
2 changed files with 12 additions and 0 deletions

3
_layouts/blank.html Normal file
View File

@ -0,0 +1,3 @@
--
--
{{content}}

9
sitemap.xml Normal file
View File

@ -0,0 +1,9 @@
---
layout: blank
---
<?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">
<url><loc>{{ site.url }}/</loc></url>
{% for page in site.pages %}{% if page.type == 'article' %}<url><loc>{{ site.url }}{{ page.url | remove: '.html' }}</loc></url>
{% endif %}{% endfor %}
</urlset>