mirror of
https://github.com/newtype256/website.git
synced 2025-07-11 05:56:25 +02:00
✨ newtype64 ✨
This commit is contained in:
parent
9b7ec300bf
commit
9793d1019c
8 changed files with 49 additions and 429 deletions
16
site.hs
16
site.hs
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue