Permalink
Browse files

Added dynamic sitemap.xml

  • Loading branch information...
1 parent 3a1ffc6 commit 42e6f05f69ae2238cc9c9c245a22897182fd0d69 @kolber committed Jan 19, 2010
No changes.
@@ -0,0 +1,4 @@
+foreach $children do
+ :sitemap-url
+ :sitemap-children
+endforeach
@@ -0,0 +1,6 @@
+<url>
+ <loc>http://@base_url/@permalink/</loc>
+ <lastmod>@updated</lastmod>
+ <changefreq>monthly</changefreq>
+ <priority>0.7</priority>
+</url>
View
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+ get "/" do
+ <url>
+ <loc>http://@base_url/</loc>
+ <lastmod>@updated</lastmod>
+ <changefreq>monthly</changefreq>
+ <priority>0.9</priority>
+ </url>
+ end
+ foreach $root do
+ :sitemap-url
+ if $children do
+ :sitemap-children
+ endif
+ endforeach
+</urlset>

0 comments on commit 42e6f05

Please sign in to comment.