From 0079d42ef128a1d91daa4f483f2b65e3e9b6bfdc Mon Sep 17 00:00:00 2001 From: Joris Date: Thu, 23 Feb 2017 10:21:12 +0100 Subject: Add shortbread recipe --- Cooking.hs | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 Cooking.hs (limited to 'Cooking.hs') diff --git a/Cooking.hs b/Cooking.hs deleted file mode 100644 index 809f50f..0000000 --- a/Cooking.hs +++ /dev/null @@ -1,39 +0,0 @@ -{-# LANGUAGE OverloadedStrings #-} - -import Data.Monoid (mappend) -import Hakyll - -main :: IO () -main = hakyllWith configuration $ do - match "images/*" $ do - route idRoute - compile copyFileCompiler - - match "design/*.hs" $ do - route $ setExtension "css" - compile $ getResourceString >>= withItemBody (unixFilter "runghc" []) - - match "recipes/*" $ do - route $ setExtension "html" - compile $ pandocCompiler - >>= loadAndApplyTemplate "templates/main.html" defaultContext - >>= relativizeUrls - - match "index.html" $ do - route idRoute - let context = - listField "recipes" defaultContext (loadAll "recipes/*") `mappend` - defaultContext - compile $ - getResourceBody - >>= applyAsTemplate context - >>= loadAndApplyTemplate "templates/main.html" context - >>= relativizeUrls - - match "templates/*" $ compile templateBodyCompiler - -configuration :: Configuration -configuration = defaultConfiguration - { destinationDirectory = "public" - , inMemoryCache = True - } -- cgit v1.2.3