From: Lucian Mogosanu Date: Sat, 20 Jul 2013 10:08:07 +0000 (+0300) Subject: add post template X-Git-Tag: v0.1~29 X-Git-Url: https://git.mogosanu.ro/?a=commitdiff_plain;h=3855869488798d11ceb5d205d868852fa4c48a74;p=thetarpit.git add post template --- 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$