summaryrefslogtreecommitdiff
path: root/_site_build
diff options
context:
space:
mode:
authordavidtsadler <davidtsadler@googlemail.com>2012-01-09 21:44:45 +0000
committerdavidtsadler <davidtsadler@googlemail.com>2012-01-09 21:44:45 +0000
commit459d3bd4ef23a39a38cd5c0b9d5e27d70531ab48 (patch)
treeb3b677335a5adc1bb6b8c51de5f852aec4d54399 /_site_build
parent3e31b5381994c45f06bda4cbb4f1f5ec41a0cdc2 (diff)
Add sitemap.
Diffstat (limited to '_site_build')
-rw-r--r--_site_build/robots.txt5
-rw-r--r--_site_build/sitemap.xml26
2 files changed, 30 insertions, 1 deletions
diff --git a/_site_build/robots.txt b/_site_build/robots.txt
index 4738d6a..9755d00 100644
--- a/_site_build/robots.txt
+++ b/_site_build/robots.txt
@@ -1,3 +1,6 @@
+---
+layout: nil
+---
User-agent: *
Disallow:
-
+Sitemap: {{ site.url }}/sitemap.xml
diff --git a/_site_build/sitemap.xml b/_site_build/sitemap.xml
new file mode 100644
index 0000000..05fbb19
--- /dev/null
+++ b/_site_build/sitemap.xml
@@ -0,0 +1,26 @@
+---
+layout: nil
+---
+<?xml version="1.0" encoding="UTF-8"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+ <url>
+ <loc>{{ site.url}}/</loc>
+ <lastmod>{{ site.time | date: "%Y-%m-%d" }}</lastmod>
+ <changefreq>daily</changefreq>
+ <priority>1.0</priority>
+ </url>
+ <url>
+ <loc>{{ site.url}}/about/</loc>
+ <lastmod>{{ site.time | date: "%Y-%m-%d" }}</lastmod>
+ <changefreq>monthly</changefreq>
+ <priority>0.6</priority>
+ </url>
+ {% for post in site.posts %}
+ <url>
+ <loc>{{ site.url}}{{ post.url }}</loc>
+ <lastmod>{{ post.date | date: "%Y-%m-%d" }}</lastmod>
+ <changefreq>weekly</changefreq>
+ <priority>0.8</priority>
+ </url>
+ {% endfor %}
+</urlset>