aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Main.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 40ed81e..52d0cee 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 "recettes/**" $ do
route $ setExtension "html"
compile $ pandocCompiler
>>= loadAndApplyTemplate "templates/main.html" defaultContext
@@ -36,9 +36,9 @@ main = hakyllWith configuration $ do
match "index.html" $ do
route idRoute
let context =
- 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`
+ listField "mainDishes" defaultContext (loadAll "recettes/plats/*") `mappend`
+ listField "lowCarbDesserts" defaultContext (loadAll "recettes/desserts/hypoglucidique/*") `mappend`
+ listField "highCarbDesserts" defaultContext (loadAll "recettes/desserts/hyperglucidique/*") `mappend`
defaultContext
compile $
getResourceBody