back to index.html

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

6
Rules
View file

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