Added sitemap.xml generation

This commit is contained in:
Yann Esposito (Yogsototh) 2010-06-15 18:52:44 +02:00
parent 5c0a0585b3
commit 54dd7aafcd
5 changed files with 16 additions and 0 deletions

1
.gitignore vendored
View file

@ -5,6 +5,7 @@ output/Scratch/assets
output/Scratch/en
output/Scratch/fr
output/Scratch/map.yrf
output/Scratch/sitemap.xml
tmp/
recupen.pl
recupfr.pl

7
Rules
View file

@ -75,5 +75,12 @@ route '/xml/fr/*' do
'/Scratch/fr/blog/feed/feed.xml'
end
compile '/sitemap/*' do
layout 'sitemap'
end
route '/sitemap/*' do
'/Scratch/sitemap.xml'
end
layout '*', :erb

View file

@ -0,0 +1,4 @@
---
---
used for generating sitemap.

3
layouts/sitemap.html Normal file
View file

@ -0,0 +1,3 @@
-----
-----
<%= xml_sitemap %>

View file

@ -14,3 +14,4 @@ include Nanoc3::Helpers::Capturing
include Nanoc3::Helpers::LinkTo
include Nanoc3::Helpers::Blogging
include Nanoc3::Helpers::Text
include Nanoc3::Helpers::XMLSitemap