This commit is contained in:
Matthias Döring 2011-06-06 12:40:14 +02:00
parent 5ded17c775
commit 1f259be206

View file

@ -93,7 +93,7 @@ module Middleman
next if file_source.include?('layout') next if file_source.include?('layout')
# Skip partials prefixed with an underscore # Skip partials prefixed with an underscore
next unless file_source.split('/').select { |p| p[0,1] == '_' }.empty? next unless file_source.gsub(Middleman::Server.root, '').split('/').select { |p| p[0,1] == '_' }.empty?
file_extension = File.extname(file_source) file_extension = File.extname(file_source)
file_destination = File.join(given_destination, file_source.gsub(source, '.')) file_destination = File.join(given_destination, file_source.gsub(source, '.'))