back to index.html

This commit is contained in:
Lorin Werthen 2016-08-30 23:37:32 +02:00
parent dda4155be4
commit 9eb426cb46

4
Rules
View file

@ -157,7 +157,11 @@ route '/events/**/*', rep: :ical do
end end
route '/**/*.{erb,html,md}' do route '/**/*.{erb,html,md}' do
if item.identifier.without_ext.to_s =~ %r{/index$}
"#{item.identifier.without_ext}.html" "#{item.identifier.without_ext}.html"
else
"#{item.identifier.without_ext}/index.html"
end
end end
route '/**/*' do route '/**/*' do