From 00a6dc0ddaea640658289f9c0dc80211fb39faf6 Mon Sep 17 00:00:00 2001 From: nek0 Date: Fri, 4 Mar 2016 00:21:25 +0100 Subject: [PATCH] fixed markdown template for index --- src/Main.hs | 3 ++- templates/post-list.html | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) 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 @@