From 3855869488798d11ceb5d205d868852fa4c48a74 Mon Sep 17 00:00:00 2001 From: Lucian Mogosanu Date: Sat, 20 Jul 2013 13:08:07 +0300 Subject: [PATCH] add post template --- site.hs | 1 + templates/post.html | 1 + 2 files changed, 2 insertions(+) create mode 100644 templates/post.html diff --git a/site.hs b/site.hs index e95ca1e..a4543ea 100644 --- a/site.hs +++ b/site.hs @@ -37,6 +37,7 @@ compilePosts = do route $ setExtension "html" compile $ pandocCompiler >>= saveSnapshot "content" + >>= loadAndApplyTemplate "templates/post.html" postCtx >>= loadAndApplyTemplate "templates/default.html" postCtx >>= relativizeUrls diff --git a/templates/post.html b/templates/post.html new file mode 100644 index 0000000..36d66c2 --- /dev/null +++ b/templates/post.html @@ -0,0 +1 @@ +$body$ -- 1.7.10.4