summaryrefslogtreecommitdiff
path: root/src/Text/Hakyll/Context.hs
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-01-10 13:26:57 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-01-10 13:26:57 +0100
commit6a2e6998b125024e9260d26819c262e0e7d22c8d (patch)
treeb00286fa709701e6e072e84d4f7225d8d6fbd801 /src/Text/Hakyll/Context.hs
parentbc71d54ab732d71e2f1a3c5e3dce9f3231334605 (diff)
downloadhakyll-6a2e6998b125024e9260d26819c262e0e7d22c8d.tar.gz
Worked on substitution.
Diffstat (limited to 'src/Text/Hakyll/Context.hs')
-rw-r--r--src/Text/Hakyll/Context.hs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/Text/Hakyll/Context.hs b/src/Text/Hakyll/Context.hs
index 3d6f88c..22409bf 100644
--- a/src/Text/Hakyll/Context.hs
+++ b/src/Text/Hakyll/Context.hs
@@ -3,7 +3,6 @@ module Text.Hakyll.Context
( ContextManipulation
, renderValue
, renderDate
- , ignoreKeys
) where
import qualified Data.Map as M
@@ -45,9 +44,3 @@ renderDate key format defaultValue context =
"%Y-%m-%d"
dateString :: Maybe UTCTime
return $ formatTime defaultTimeLocale format time
-
--- | Ignore a number of keys during the render phase.
-ignoreKeys :: [String] -> ContextManipulation
-ignoreKeys keyList = M.union (M.fromList pairs)
- where pairs = map pair keyList
- pair key = (B.pack $ '$' : key, B.pack $ '$' : key)