Merge pull request #131 from arronmabrey/patch-1
Build handels files prefixed with 2 consecutive underscores
This commit is contained in:
commit
2c85b8fbb6
1 changed files with 2 additions and 2 deletions
|
@ -111,8 +111,8 @@ module Middleman
|
|||
|
||||
protected
|
||||
def handle_path(file_source)
|
||||
# Skip partials prefixed with an underscore
|
||||
return unless file_source.gsub(SHARED_SERVER.root, '').split('/').select { |p| p[0,1] == '_' }.empty?
|
||||
# Skip partials prefixed with an underscore while still handling files prefixed with 2 consecutive underscores
|
||||
return unless file_source.gsub(SHARED_SERVER.root, '').split('/').select { |p| p[/^_[^_]/] }.empty?
|
||||
|
||||
file_extension = File.extname(file_source)
|
||||
file_destination = File.join(given_destination, file_source.gsub(source, '.'))
|
||||
|
|
Loading…
Reference in a new issue