summaryrefslogtreecommitdiff
path: root/src/Hakyll/Web/Template.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Hakyll/Web/Template.hs')
-rw-r--r--src/Hakyll/Web/Template.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Hakyll/Web/Template.hs b/src/Hakyll/Web/Template.hs
index 6e6ad67..78ddbba 100644
--- a/src/Hakyll/Web/Template.hs
+++ b/src/Hakyll/Web/Template.hs
@@ -73,7 +73,7 @@ applyTemplate template page =
where
substitute (Chunk chunk) = chunk
substitute (Key key) =
- fromMaybe ('$' : key) $ M.lookup key $ toMap page
+ fromMaybe ("$" ++ key ++ "$") $ M.lookup key $ toMap page
substitute (Escaped) = "$"
-- | Apply a page as it's own template. This is often very useful to fill in