Permalink
Browse files

Adding dynamic sitemap

  • Loading branch information...
1 parent 279c5ea commit a392fee5baf3b1e4c8ac0ba5012a6959f1c6f63b @jackbrewer committed Mar 29, 2012
Showing with 21 additions and 0 deletions.
  1. +21 −0 sitemap.xml
View
@@ -0,0 +1,21 @@
+---
+layout: nil
+---
+
+<?xml version="1.0" encoding="UTF-8"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+ <url>
+ <loc>http://jackbrewer.co.uk/</loc>
+ <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
+ <changefreq>weekly</changefreq>
+ <priority>1</priority>
+ </url>
+ {% for post in site.posts limit:10 %}
+ <url>
+ <loc>http://jackbrewer.co.uk{{ post.url }}</loc>
+ <lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
+ <changefreq>weekly</changefreq>
+ <priority>0.8</priority>
+ </url>
+ {% endfor %}
+</urlset>

0 comments on commit a392fee

Please sign in to comment.