back to index.html
This commit is contained in:
parent
dda4155be4
commit
9eb426cb46
1 changed files with 5 additions and 1 deletions
4
Rules
4
Rules
|
@ -157,7 +157,11 @@ route '/events/**/*', rep: :ical do
|
|||
end
|
||||
|
||||
route '/**/*.{erb,html,md}' do
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue