Skip to content
Snippets Groups Projects
Unverified Commit e6c4da79 authored by orestis.malaspin's avatar orestis.malaspin
Browse files

updated team with posts like syntax

parent 2c7d9e0c
No related branches found
No related tags found
No related merge requests found
Pipeline #12599 failed
......@@ -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
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment