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

updated stff

parent 1f7cf093
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,7 @@ main = hakyllWith cfg $ do
.||. "js/*"
.||. "reveal.js/dist/**"
.||. "reveal.js/plugin/**"
.||. "cours/prog_seq/slides/figs/*"
.||. "cours/math_tech_info/figs/*"
.||. "cours/math_tech_info/cours.pdf"
.||. "cours/isc_physics/cours.pdf"
......@@ -100,7 +101,7 @@ main = hakyllWith cfg $ do
>>= relativizeUrls
-- Phys app posts
match "cours/prog_seq/base_1.md" $ do
match "cours/prog_seq/slides/*.markdown" $ do
route $ setExtension "html"
compile $ pandocRevealCompiler
>>= loadAndApplyTemplate "templates/reveal.html" postCtx
......@@ -110,7 +111,7 @@ main = hakyllWith cfg $ do
create ["prog_seq.html"] $ do
route idRoute
compile $ do
posts <- recentFirst =<< loadAll ("cours/prog_seq/base_1.md" .&&. hasNoVersion)
posts <- recentFirst =<< loadAll "cours/prog_seq/slides/*.markdown"
makeItem ""
>>= loadAndApplyTemplate "templates/archive.html" (courseCtx posts "Programmation séquentielle" "cours/isc_physics/cours.pdf")
>>= relativizeUrls
......@@ -224,6 +225,11 @@ courseCtx posts title pdfurl =
`mappend` constField "title" title
`mappend` constField "pdfurl" pdfurl
`mappend` defaultContext
courseRevealCtx posts title =
listField "posts" postCtx (return posts)
`mappend` constField "title" title
`mappend` defaultContext
researchCtx posts =
listField "posts" postCtx (return posts)
......
......@@ -13,3 +13,4 @@ clean:
rm -rf _cache _site
make clean -C cours/math_tech_info
make clean -C cours/isc_physics
make clean -C cours/prog_seq/slides
Subproject commit 6361d1b616343c5ae0a2d5a4833ecf814f0b7b10
Subproject commit 94bd5d4d14b8b09d7850b5e5296d17f0c31b565c
......@@ -21,7 +21,7 @@ $backgroundColor: #fff;
$mainColor: #222;
$headingColor: #222;
$mainFontSize: 20px;
$mainFontSize: 15px;
$mainFont: 'Source Sans Pro', Helvetica, sans-serif;
$headingFont: 'Source Sans Pro', Helvetica, sans-serif;
$headingTextShadow: none;
......
......@@ -19,7 +19,7 @@ $endif$
$if(theme)$
<link rel="stylesheet" href="$revealjs-url$/dist/theme/$theme$.css" id="theme">
$else$
<link rel="stylesheet" href="$revealjs-url$/dist/theme/black.css" id="theme">
<link rel="stylesheet" href="$revealjs-url$/dist/theme/white.css" id="theme">
$endif$
$if(math)$
$math$
......
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