summaryrefslogtreecommitdiff
path: root/src/Text/Hakyll/Page.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/Page.hs
parentbc71d54ab732d71e2f1a3c5e3dce9f3231334605 (diff)
downloadhakyll-6a2e6998b125024e9260d26819c262e0e7d22c8d.tar.gz
Worked on substitution.
Diffstat (limited to 'src/Text/Hakyll/Page.hs')
-rw-r--r--src/Text/Hakyll/Page.hs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/Text/Hakyll/Page.hs b/src/Text/Hakyll/Page.hs
index 85fd062..83ca654 100644
--- a/src/Text/Hakyll/Page.hs
+++ b/src/Text/Hakyll/Page.hs
@@ -4,7 +4,6 @@ module Text.Hakyll.Page
, getValue
, getBody
, readPage
- , writePage
) where
import qualified Data.Map as M
@@ -121,7 +120,6 @@ readPage pagePath = do
[ (B.pack "body", rendered)
, packPair ("url", url)
, packPair ("path", pagePath)
- , packPair ("root", toRoot url)
] ++ map packPair context
-- Cache if needed
@@ -130,13 +128,6 @@ readPage pagePath = do
where url = toURL pagePath
cacheFile = toCache url
--- | Write a page to the site destination.
-writePage :: Page -> IO ()
-writePage page = do
- let destination = toDestination $ getURL page
- makeDirectories destination
- B.writeFile destination (getBody page)
-
-- Make pages renderable.
instance Renderable Page where
getDependencies = (:[]) . getPagePath