From 150cdb3bb22303c2061a0aca1471896c28ce57e9 Mon Sep 17 00:00:00 2001 From: Joris Date: Sat, 29 Oct 2016 21:58:14 +0200 Subject: Set destination directoyr to public --- .gitignore | 2 +- Cooking.hs | 8 +++++++- 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 + } -- cgit v1.2.3