add post template
authorLucian Mogosanu <lucian.mogosanu@gmail.com>
Sat, 20 Jul 2013 10:08:07 +0000 (13:08 +0300)
committerLucian Mogosanu <lucian.mogosanu@gmail.com>
Sat, 20 Jul 2013 10:08:07 +0000 (13:08 +0300)
site.hs
templates/post.html [new file with mode: 0644]

diff --git a/site.hs b/site.hs
index e95ca1e..a4543ea 100644 (file)
--- 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 (file)
index 0000000..36d66c2
--- /dev/null
@@ -0,0 +1 @@
+$body$