Added sitemap.xml generation
This commit is contained in:
parent
5c0a0585b3
commit
54dd7aafcd
5 changed files with 16 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -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
7
Rules
|
@ -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
|
||||
|
||||
|
|
4
content/sitemap/sitemap.html
Normal file
4
content/sitemap/sitemap.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
---
|
||||
|
||||
used for generating sitemap.
|
3
layouts/sitemap.html
Normal file
3
layouts/sitemap.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
-----
|
||||
-----
|
||||
<%= xml_sitemap %>
|
|
@ -14,3 +14,4 @@ include Nanoc3::Helpers::Capturing
|
|||
include Nanoc3::Helpers::LinkTo
|
||||
include Nanoc3::Helpers::Blogging
|
||||
include Nanoc3::Helpers::Text
|
||||
include Nanoc3::Helpers::XMLSitemap
|
||||
|
|
Loading…
Reference in a new issue