From 9eb426cb466bfaee22466e68ddded66ff43b4165 Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Tue, 30 Aug 2016 23:37:32 +0200 Subject: [PATCH] back to index.html --- Rules | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Rules b/Rules index cb85b5a..bb85efe 100644 --- a/Rules +++ b/Rules @@ -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