lib/awestruct/extensions/indexifier.rb in awestruct-0.2.11 vs lib/awestruct/extensions/indexifier.rb in awestruct-0.2.12

- old
+ new

@@ -1,18 +1,17 @@ - module Awestruct module Extensions - class Indexifier + def execute(site) site.pages.each do |page| if ( page.inhibit_indexifier || ( page.output_path =~ /^(.*\/)?index.html$/ ) ) # skip it! else page.output_path = page.output_path.gsub( /.html$/, '/index.html' ) end end end - end + end end end