From 7598165909ab1921704fc4df88072e278eb41e49 Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Sat, 19 May 2012 22:05:48 -0700 Subject: [PATCH] Write directory_indexes based on destination_path so it plays well with other manipulators --- .../lib/middleman-core/extensions/directory_indexes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleman-core/lib/middleman-core/extensions/directory_indexes.rb b/middleman-core/lib/middleman-core/extensions/directory_indexes.rb index 36cb3c3f..78822ebd 100644 --- a/middleman-core/lib/middleman-core/extensions/directory_indexes.rb +++ b/middleman-core/lib/middleman-core/extensions/directory_indexes.rb @@ -46,9 +46,9 @@ module Middleman::Extensions next end - resource.destination_path = resource.path.chomp(File.extname(index_file)) + new_index_path + resource.destination_path = resource.destination_path.chomp(File.extname(index_file)) + new_index_path end end end end -end \ No newline at end of file +end