Merge pull request #947 from arronmabrey/add_support_for_nojekyll_dotfile
Add support for nojekyll dotfile [with tests]
This commit is contained in:
commit
ab98f4bcc0
|
@ -12,6 +12,7 @@ Feature: Directory Index
|
|||
| regular/index.html |
|
||||
| .htaccess |
|
||||
| .htpasswd |
|
||||
| .nojekyll |
|
||||
Then the following files should not exist:
|
||||
| egular/index/index.html |
|
||||
| needs_index.html |
|
||||
|
|
|
@ -33,7 +33,7 @@ module Middleman
|
|||
|
||||
# Files starting with an dot, but not .htaccess
|
||||
:source_dotfiles => proc { |file|
|
||||
file =~ %r{/\.} && file !~ %r{/\.ht(access|passwd)}
|
||||
file =~ %r{/\.} && file !~ %r{/\.(htaccess|htpasswd|nojekyll)}
|
||||
},
|
||||
|
||||
# Files starting with an underscore, but not a double-underscore
|
||||
|
|
Loading…
Reference in a new issue