summaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-03-05 19:02:25 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-03-05 19:02:25 +0100
commit65b1a9cf00ef8c2f895416ee5ad5f299d05be9b8 (patch)
tree6942763cb157675d0e1108c9c9aaebbb0571a590 /src/Text
parentf1b1e179aa8c86518ab0768153821f9b4454075a (diff)
downloadhakyll-65b1a9cf00ef8c2f895416ee5ad5f299d05be9b8.tar.gz
Fixed bug in date rendering.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Hakyll/Internal/Page.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Hakyll/Internal/Page.hs b/src/Text/Hakyll/Internal/Page.hs
index c91d7ae..657ea77 100644
--- a/src/Text/Hakyll/Internal/Page.hs
+++ b/src/Text/Hakyll/Internal/Page.hs
@@ -98,7 +98,8 @@ readPageFromFile path = do
url <- toUrl path
let sections = splitAtDelimiters $ lines contents
sectionsData = concat $ zipWith ($) sectionFunctions sections
- context = M.fromList $ ("url", url) : category ++ sectionsData
+ context = M.fromList $
+ ("url", url) : ("path", path) : category ++ sectionsData
return context
where