aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--Cooking.hs8
2 files changed, 8 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index f75bd2d..ea1a5de 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,3 @@
_cache
-_site
+public
dist
diff --git a/Cooking.hs b/Cooking.hs
index a5be5a1..5c368d0 100644
--- a/Cooking.hs
+++ b/Cooking.hs
@@ -4,7 +4,7 @@ import Data.Monoid (mappend)
import Hakyll
main :: IO ()
-main = hakyll $ do
+main = hakyllWith configuration $ do
match "design/*.hs" $ do
route $ setExtension "css"
compile $ getResourceString >>= withItemBody (unixFilter "runghc" [])
@@ -27,3 +27,9 @@ main = hakyll $ do
>>= relativizeUrls
match "templates/*" $ compile templateBodyCompiler
+
+configuration :: Configuration
+configuration = defaultConfiguration
+ { destinationDirectory = "public"
+ , inMemoryCache = True
+ }