Skip to content

Commit

Permalink
if a filename begins with a hash (#), hakyll should ignore it, too,
Browse files Browse the repository at this point in the history
because emacs names its backup files like #this# (while you're still
editing).
  • Loading branch information
Mekeor Melire committed Aug 12, 2012
1 parent 0f484c4 commit ca17e43
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Hakyll/Core/Configuration.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ data HakyllConfiguration = HakyllConfiguration
--
-- * files starting with a @.@
--
-- * files starting with a @#@
--
-- * files ending with a @~@
--
-- * files ending with @.swp@
Expand Down Expand Up @@ -57,8 +59,9 @@ defaultHakyllConfiguration = HakyllConfiguration
}
where
ignoreFile' path
| "." `isPrefixOf` fileName = True
| "~" `isSuffixOf` fileName = True
| "." `isPrefixOf` fileName = True
| "#" `isPrefixOf` fileName = True
| "~" `isSuffixOf` fileName = True
| ".swp" `isSuffixOf` fileName = True
| otherwise = False
where
Expand Down

0 comments on commit ca17e43

Please sign in to comment.