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

hopefully this works now

parent 6f2727af
No related branches found
No related tags found
No related merge requests found
Pipeline #15669 failed
......@@ -136,19 +136,18 @@ main = hakyllWith config $ do
-- >>= loadAndApplyTemplate "templates/reveal.html" postCtx
-- >>= relativizeUrls
match "cours/algo/slides/index.md" $ do
route $ setExtension "html"
compile $ pandocCompiler
>>= loadAndApplyTemplate "templates/post.html" postCtx
>>= relativizeUrls
-- match "cours/algo/slides/index.md" $ do
-- route $ setExtension "html"
-- compile $ pandocCompiler
-- >>= loadAndApplyTemplate "templates/post.html" postCtx
-- >>= relativizeUrls
-- Prog seq post list
create ["cours/algo.html"] $ do
route idRoute
compile $ do
posts <- recentFirst =<< loadAll "cours/algo/slides/index.md"
makeItem ""
>>= loadAndApplyTemplate "templates/archive.html" (courseCtx posts "Les slides d'Algorithmique en PDF" "algo/slides/index.html")
>>= loadAndApplyTemplate "templates/static_course.html" (noPostCtx "Les slides d'Algorithmique en PDF" "algo/slides/index.html")
>>= relativizeUrls
-- Team description
......@@ -226,7 +225,7 @@ main = hakyllWith config $ do
where
staticPages =
[ "pages/contact.md"
-- , "cours/algo/slides/index.md"
, "cours/algo/slides/index.md"
]
-- Used to compile to PDF
......
......@@ -11,7 +11,7 @@ build: update Main.hs cours/math_tech_info/*.md cours/isc_physics/*.md
make -C cours/isc_physics
make markdown -C cours/prog_seq/slides
# make markdown -C cours/algo/slides
make puppeteer -C cours/algo/slides
make puppeteer -C cours/algo/slides SHELL=bash
make -C cours/algo/slides
make index -C cours/algo/slides
stack build --allow-different-user && stack exec --allow-different-user blog -- build
......@@ -26,6 +26,9 @@ build_revealjs:
update:
make update -C ..
clean_site:
rm -rf _cache _site
clean:
rm -rf _cache _site
make clean -C cours/math_tech_info
......
......@@ -24,9 +24,8 @@
<div class="container">
<h1>$title$</h1>
$if(pdfurl)$
<h3><a href="$pdfurl$">Le polycopié en entier [pdf]</a></h3>
<h3><a href="$pdfurl$">Les slides du cours [pdf]</a></h3>
$endif$
<h2>Les chapitres</h2>
$partial("templates/footer.html")$
</div>
......
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