~ehamberg/blog

c101f7f7b3a5425575c1de6de272787e7a69d3d7 — Erlend Hamberg 6 months ago 2dabadb
Fix compilation of draft posts
1 files changed, 2 insertions(+), 1 deletions(-)

M src/Main.hs
M src/Main.hs => src/Main.hs +2 -1
@@ 32,10 32,11 @@ main = hakyllWith conf $ do
        >>= loadAndApplyTemplate "templates/default.html" (postCtx tags)
        >>= relativizeUrls

  match "drafts/*" $ do
  match "drafts/*.md" $ do
    route $ setExtension "html"
    compile $
      pandocCompiler
        >>= loadAndApplyTemplate "templates/post.html" (postCtx tags)
        >>= saveSnapshot "content"
        >>= loadAndApplyTemplate "templates/default.html" (postCtx tags)
        >>= relativizeUrls