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
|
>>= relativizeUrls
|
||||||
|
|
||||||
|
|
||||||
match "index.html" $ do
|
match "index.rst" $ do
|
||||||
route idRoute
|
route $ setExtension "html"
|
||||||
compile $ do
|
compile $ do
|
||||||
posts <- recentFirst =<< loadAll "posts/*"
|
posts <- recentFirst =<< loadAll "posts/*"
|
||||||
let indexCtx =
|
let indexCtx =
|
||||||
|
@ -52,7 +52,7 @@ main = hakyll $ do
|
||||||
constField "title" "Home" `mappend`
|
constField "title" "Home" `mappend`
|
||||||
defaultContext
|
defaultContext
|
||||||
|
|
||||||
getResourceBody
|
pandocCompiler
|
||||||
>>= applyAsTemplate indexCtx
|
>>= applyAsTemplate indexCtx
|
||||||
>>= loadAndApplyTemplate "templates/default.html" indexCtx
|
>>= loadAndApplyTemplate "templates/default.html" indexCtx
|
||||||
>>= relativizeUrls
|
>>= relativizeUrls
|
||||||
|
|
Loading…
Reference in a new issue