From 2c7d9e0cc2d266130b294d3239bbb56d985bfb69 Mon Sep 17 00:00:00 2001 From: Orestis Malaspinas <orestis.malaspinas@hesge.ch> Date: Sun, 15 Nov 2020 10:39:35 +0100 Subject: [PATCH] corrected omision of pages export --- hakyll-bootstrap/Main.hs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hakyll-bootstrap/Main.hs b/hakyll-bootstrap/Main.hs index 3516f25..57774ac 100644 --- a/hakyll-bootstrap/Main.hs +++ b/hakyll-bootstrap/Main.hs @@ -133,6 +133,12 @@ main = hakyllWith config $ do >>= applyAsTemplate (indexCtx posts) >>= relativizeUrls + match "pages/*" $ do + route $ setExtension "html" + compile $ getResourceBody + >>= loadAndApplyTemplate "templates/page.html" postCtx + >>= relativizeUrls + -- Read templates match "templates/*" $ compile templateCompiler -- GitLab