diff --git a/src/Main.hs b/src/Main.hs index 55d56cb..19472ac 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -41,8 +41,9 @@ main = do constField "title" "Home" <> field "tags" (\_ -> renderTagCloud 85.0 300.0 tags) <> defaultContext - getResourceBody >>= myPandoc + getResourceBody >>= applyAsTemplate indexCtx + >>= renderPandoc >>= loadAndApplyTemplate "templates/default.html" baseCtx >>= relativizeUrls diff --git a/templates/post-list.html b/templates/post-list.html index 71cf1b9..995c6a1 100644 --- a/templates/post-list.html +++ b/templates/post-list.html @@ -1,7 +1,7 @@