Changed index.html to index.rst
This commit is contained in:
parent
72fa82db58
commit
1614e1ea38
6
site.hs
6
site.hs
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue