summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMekeor Melire <mekeor@ymail.com>2012-08-13 01:23:04 +0200
committerMekeor Melire <mekeor@ymail.com>2012-08-13 01:23:04 +0200
commitca17e43628e1196701c65993480dffa650cb0916 (patch)
tree849ed799669f5501c95c1548463c070c4a3963a8
parent0f484c49be07f0729d89d562f02a40109872737a (diff)
downloadhakyll-ca17e43628e1196701c65993480dffa650cb0916.tar.gz
if a filename begins with a hash (#), hakyll should ignore it, too,
because emacs names its backup files like #this# (while you're still editing).
-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