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

added physics

parent 607ec279
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,8 @@ static = do
.||. "img/*/**.png"
.||. "css/*"
.||. "js/*"
.||. "cours/math_tech_info/figs/*") $ do
.||. "cours/math_tech_info/figs/*"
.||. "cours/isc_physics/figs/*") $ do
route idRoute
compile $ copyFileCompiler
......@@ -82,6 +83,13 @@ resizeThumbnails = do
compile $ loadImage
>>= scaleImageCompiler 140 140
resizeHeads :: Rules ()
resizeHeads = do
match "img/heads/**.png" $ do
route idRoute
compile $ loadImage
>>= scaleImageCompiler 256 256
resizeLarge :: Rules ()
resizeLarge = do
match "img/large/**.png" $ do
......@@ -164,6 +172,25 @@ mti = do
>>= loadAndApplyTemplate "templates/archive.html" (courseCtx posts "Mathématiques en technologie de l'information")
>>= relativizeUrls
cours_phys_app :: Rules ()
cours_phys_app = do
match "cours/isc_physics/*.markdown" $ do
route $ setExtension "html"
-- compile $ myPandocCompiler
compile $ bibtexCompiler
>>= loadAndApplyTemplate "templates/class.html" postCtx
>>= relativizeUrls
phys_app :: Rules ()
phys_app = do
create ["phys_app.html"] $ do
route idRoute
compile $ do
posts <- recentFirst =<< loadAll "cours/isc_physics/*"
makeItem ""
>>= loadAndApplyTemplate "templates/archive.html" (courseCtx posts "Physique appliquée")
>>= relativizeUrls
index :: Rules ()
index = do
match "index.html" $ do
......@@ -244,11 +271,14 @@ main = hakyllWith cfg $ do
conc
cours_mti
mti
cours_phys_app
phys_app
research
bachelor
index
templates
resizeThumbnails
resizeLarge
resizeHeads
static
watch:
watch: Main.hs cours/math_tech_info/*.md cours/isc_physics/*.md
make hakyll_gen -C cours/math_tech_info
stack build && stack exec blog -- watch
make hakyll_gen -C cours/isc_physics
stack build && stack exec blog -- rebuild && stack exec blog -- watch
clean:
rm -rf _cache _site
make clean -C cours/math_tech_info
\ No newline at end of file
make clean -C cours/math_tech_info
make clean -C cours/isc_physics
Subproject commit 84eaf9574581175da1da2ce2564caede9be3a818
Subproject commit f7cce04fd3823928781f30e8c5d497acfafde470
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