Changed index.html to index.rst

This commit is contained in:
Serĉanto de Scio 2015-08-25 22:55:39 +10:00
parent 72fa82db58
commit 1614e1ea38

View file

@ -43,8 +43,8 @@ main = hakyll $ do
>>= relativizeUrls
match "index.html" $ do
route idRoute
match "index.rst" $ do
route $ setExtension "html"
compile $ do
posts <- recentFirst =<< loadAll "posts/*"
let indexCtx =
@ -52,7 +52,7 @@ main = hakyll $ do
constField "title" "Home" `mappend`
defaultContext
getResourceBody
pandocCompiler
>>= applyAsTemplate indexCtx
>>= loadAndApplyTemplate "templates/default.html" indexCtx
>>= relativizeUrls