newtype64

This commit is contained in:
Yvan Sraka 2021-06-05 13:12:15 +02:00
parent 9b7ec300bf
commit 9793d1019c
8 changed files with 49 additions and 429 deletions

16
site.hs
View file

@ -7,16 +7,14 @@ import Hakyll
--------------------------------------------------------------------------------
main :: IO ()
main = hakyll $ do
match "css/*" $ do
match "assets/css/*" $ do
route idRoute
compile compressCssCompiler
match "index.html" $ do
route idRoute
compile $ do
getResourceBody
>>= applyAsTemplate indexCtx
>>= loadAndApplyTemplate "templates/default.html" indexCtx
>>= relativizeUrls
match "index.md" $ do
route $ setExtension "html"
compile $ pandocCompiler
>>= loadAndApplyTemplate "_layouts/default.html" defaultContext
>>= relativizeUrls
match "templates/*" $ compile templateBodyCompiler
match "_layouts/*" $ compile templateBodyCompiler