Build incomplete posts as well

This commit is contained in:
Mats Rauhala 2018-12-24 13:32:52 +02:00
parent 213442ac0f
commit 4120b2fff5
1 changed files with 7 additions and 0 deletions

View File

@ -31,6 +31,13 @@ main = hakyllWith defaultConfiguration{ deployCommand = "ipfs add -Q -r _site" }
>>= loadAndApplyTemplate "templates/default.html" defaultContext
>>= relativizeUrls
match "posts/incomplete/*" $ do
route $ setExtension "html"
compile $ pandocCompiler
>>= loadAndApplyTemplate "templates/post.html" postCtx
>>= loadAndApplyTemplate "templates/default.html" postCtx
>>= relativizeUrls
match "posts/guides/*" $ do
route $ setExtension "html"
compile $ pandocCompiler