aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Main.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Main.hs b/src/Main.hs
index c781cd4..dd37fe4 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -27,7 +27,7 @@ main = hakyllWith configuration $ do
unsafeCompiler (readProcess "pulp" [ "build", "--optimise", "--src-path", "js" ] "")
>>= makeItem
- match "recipes/*" $ do
+ match "recipes/**" $ do
route $ setExtension "html"
compile $ pandocCompiler
>>= loadAndApplyTemplate "templates/main.html" defaultContext
@@ -36,7 +36,9 @@ main = hakyllWith configuration $ do
match "index.html" $ do
route idRoute
let context =
- listField "recipes" defaultContext (loadAll "recipes/*") `mappend`
+ listField "mainDishes" defaultContext (loadAll "recipes/main-dishes/*") `mappend`
+ listField "lowCarbDesserts" defaultContext (loadAll "recipes/desserts/low-carb/*") `mappend`
+ listField "highCarbDesserts" defaultContext (loadAll "recipes/desserts/high-carb/*") `mappend`
defaultContext
compile $
getResourceBody