summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2012-08-12 17:22:54 -0700
committerJasper Van der Jeugt <jaspervdj@gmail.com>2012-08-12 17:22:54 -0700
commit1a5f7a135d1de67d1db22a49af364455b047f5c0 (patch)
tree74076bd5a636a607e6f3c9f65b5a41aea2185e08
parenteb3dd6c642002f5f61248df279c62423c3fc384f (diff)
parent0a8df1dabf15c02ebd3590ec04b8916e4e0fda7a (diff)
downloadhakyll-1a5f7a135d1de67d1db22a49af364455b047f5c0.tar.gz
Merge pull request #82 from mekeor/master
ignore files beginning with a hash
-rw-r--r--src/Hakyll/Core/Configuration.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Hakyll/Core/Configuration.hs b/src/Hakyll/Core/Configuration.hs
index 3e3c44a..5c60ac5 100644
--- a/src/Hakyll/Core/Configuration.hs
+++ b/src/Hakyll/Core/Configuration.hs
@@ -20,6 +20,8 @@ data HakyllConfiguration = HakyllConfiguration
--
-- * files starting with a @.@
--
+ -- * files starting with a @#@
+ --
-- * files ending with a @~@
--
-- * files ending with @.swp@
@@ -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