diff options
author | Joris | 2017-05-20 10:14:28 +0200 |
---|---|---|
committer | Joris | 2017-05-20 10:14:28 +0200 |
commit | 5eea2801b7fba62a28642c4113bfff0a9ca5847f (patch) | |
tree | 8d4e36d22a7417e6e5faff2be44ed5f79a351172 /src | |
parent | 3e8eda47de391e8a9ade22c2024bb319133d8f38 (diff) |
Rename english directories to french ones
Diffstat (limited to 'src')
-rw-r--r-- | src/Main.hs | 8 |
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 |