Directory indexes now work during build, with the exception of .htaccess files.
This commit is contained in:
parent
4ce6913baf
commit
ca1f3ddf83
5 changed files with 34 additions and 31 deletions
|
@ -101,10 +101,10 @@ module Middleman::Cli
|
|||
# @return [void]
|
||||
def tilt_template(page)
|
||||
build_dir = self.class.shared_instance.build_dir
|
||||
output_file = File.join(self.class.shared_instance.build_dir, page.output_file_path)
|
||||
|
||||
begin
|
||||
response = self.class.shared_rack.get(page.request_path.gsub(/\s/, "%20"))
|
||||
output_file = File.join(self.class.shared_instance.build_dir, page.destination_path)
|
||||
create_file(output_file, response.body, { :force => true })
|
||||
rescue
|
||||
say_status :error, destination, :red
|
||||
|
@ -228,6 +228,8 @@ module Middleman::Cli
|
|||
|
||||
page = @app.sitemap.page(file_source)
|
||||
|
||||
puts "DEST: #{page.destination_path}"
|
||||
|
||||
next if @config[:glob] && !File.fnmatch(@config[:glob], file_source)
|
||||
|
||||
base.tilt_template(page)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue