diff --git a/hakyll-bootstrap/Main.hs b/hakyll-bootstrap/Main.hs index 57774ac07b19768b381fea2f744866386bb72240..cd60e107e81bd9e6a4c0dcd611bcc1b7d2b158c1 100644 --- a/hakyll-bootstrap/Main.hs +++ b/hakyll-bootstrap/Main.hs @@ -123,6 +123,20 @@ main = hakyllWith config $ do >>= loadAndApplyTemplate "templates/archive.html" (courseCtx posts "Programmation séquentielle" "cours/isc_physics/cours.pdf") >>= relativizeUrls + -- Team description + match "team/*.md" $ do + route $ setExtension "html" + compile $ pandocRevealCompiler + >>= relativizeUrls + + -- Phys app post list + create ["team.html"] $ do + route idRoute + compile $ do + posts <- recentFirst =<< loadAll "team/*.md" + makeItem "" + >>= loadAndApplyTemplate "templates/team.html" (courseRevealCtx posts "Team") + >>= relativizeUrls -- Index match "index.html" $ do @@ -133,11 +147,13 @@ main = hakyllWith config $ do >>= applyAsTemplate (indexCtx posts) >>= relativizeUrls - match "pages/*" $ do - route $ setExtension "html" - compile $ getResourceBody - >>= loadAndApplyTemplate "templates/page.html" postCtx - >>= relativizeUrls + -- match "pages/*" $ do + -- route $ setExtension "html" + -- compile $ getResourceBody + -- >>= loadAndApplyTemplate "templates/page.html" postCtx + -- >>= relativizeUrls + + -- Read templates match "templates/*" $ compile templateCompiler diff --git a/hakyll-bootstrap/templates/nav.html b/hakyll-bootstrap/templates/nav.html index 654ef324c35b2a33b4037de456efbc556420624f..7e8137cd8089a0d11dddc31c568bd0faca2560d7 100644 --- a/hakyll-bootstrap/templates/nav.html +++ b/hakyll-bootstrap/templates/nav.html @@ -28,7 +28,7 @@ </ul> <li><a href="/research_projects.html">Research projects</a></li> <li><a href="/bachelor_projects.html">Bachelor projects</a></li> - <li><a href="/pages/team.html">Team</a></li> + <li><a href="/team.html">Team</a></li> <li><a href="/pages/contact.html">Contact </a></li> </li> </ul>