add sitemap

This commit is contained in:
Lorin Werthen 2017-05-29 14:36:20 +02:00
parent 6691487436
commit dda79dd3c0
No known key found for this signature in database
GPG key ID: F11FFC921E0E08E0
3 changed files with 6 additions and 4 deletions

8
Rules
View file

@ -25,7 +25,7 @@ end
# COMPILATION
#
#
compile '/feed.xml' do
compile '/*.xml' do
filter :erb
end
@ -88,9 +88,6 @@ end
# Don't create specific project pages for now
route '/projects/*' do; end
#
# GENERIC ERB PAGES
#
compile '/*_search.json' do
filter :erb
end
@ -99,6 +96,9 @@ compile '/**/*.ics' do
filter :erb
end
#
# GENERIC ERB PAGES
#
compile '/**/*.erb' do
filter :erb

1
content/sitemap.xml Normal file
View file

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

View file

@ -4,6 +4,7 @@ include Nanoc::Helpers::LinkTo
include Nanoc::Helpers::Rendering
include Nanoc::Helpers::Text
include Nanoc::Helpers::ChildParent
include Nanoc::Helpers::XMLSitemap
include EnvironmentHelper
include ArchiveHelper