summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-01-20 18:38:33 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-01-20 18:38:33 +0100
commit98d712fc3a96b0b44cde389a1db9c21d76130964 (patch)
tree564e8d1490b62d832adee07a0e230ab813a8966d /examples
parent892cae9da263d9f2fad4d93dd6d6c50fb12add16 (diff)
downloadhakyll-98d712fc3a96b0b44cde389a1db9c21d76130964.tar.gz
Fixed bug in hakyll site.
Diffstat (limited to 'examples')
-rw-r--r--examples/hakyll/hakyll.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/hakyll/hakyll.hs b/examples/hakyll/hakyll.hs
index 76d95d6..92e52df 100644
--- a/examples/hakyll/hakyll.hs
+++ b/examples/hakyll/hakyll.hs
@@ -3,7 +3,8 @@ import Text.Hakyll.Render
import Text.Hakyll.Renderables
import Text.Hakyll.File
import Text.Hakyll.Regex
-
+import Control.Monad.Reader (liftIO)
+import System.Directory
import Control.Monad (mapM_, liftM)
import Data.List (sort)
@@ -13,7 +14,7 @@ main = hakyll $ do
directory static "examples"
directory static "reference"
- tutorials <- liftM (sort . filter (`matchesRegex` "tutorial[0-9]*.markdown")) $ getRecursiveContents "."
+ tutorials <- liftIO $ liftM (sort . filter (`matchesRegex` "tutorial[0-9]*.markdown")) $ getDirectoryContents "."
let tutorialList = renderAndConcat ["templates/tutorialitem.html"]
(map createPagePath tutorials)
tutorialPage = createCustomPage "tutorials.html"