diff --git a/src/Main.hs b/src/Main.hs index d0733f9..4d328e3 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -15,6 +15,8 @@ main = do hakyllWith config $ do + match "templates/*" $ compile templateCompiler + --copy fonts, images etc. match ("font/*" .||. "images/*" .||. "humans.txt" .||. "D7665688.txt" .||. "robots.txt") $ do route idRoute @@ -70,18 +72,9 @@ main = do loadAndApplyTemplate "templates/default.html" baseCtx full >>= relativizeUrls - -- match "posts/*.md" $ do - -- route $ setExtension "html" - -- compile $ pandocCompiler $ do - -- saveSnapshot "content" - -- loadAndApplyTemplate "templates/post.html" (postCtx tags) - -- loadAndApplyTemplate "templates/default.html" baseCtx - -- relativizeUrls - -- Post tags tagsRules tags $ \tag pattern -> do let title = "Posts tagged " ++ tag ++ ":" - -- Copied from posts, need to refactor route idRoute compile $ do diff --git a/templates/default.html b/templates/default.html index 95ae9aa..d0a0b65 100644 --- a/templates/default.html +++ b/templates/default.html @@ -9,13 +9,13 @@ - + - + - + diff --git a/templates/post.html b/templates/post.html index eb888ca..3688757 100644 --- a/templates/post.html +++ b/templates/post.html @@ -20,7 +20,7 @@ $body$

If you see this, something is wrong

- +