From: Lucian Mogosanu Date: Sat, 20 Jul 2013 08:36:49 +0000 (+0300) Subject: add about page X-Git-Tag: v0.1~33 X-Git-Url: https://git.mogosanu.ro/?a=commitdiff_plain;h=16c8c5a84af3e63d17d34fae1aeb471f48d03faa;p=thetarpit.git add about page --- diff --git a/about.markdown b/about.markdown new file mode 100644 index 0000000..73c793a --- /dev/null +++ b/about.markdown @@ -0,0 +1,7 @@ +--- +title: About +author: Lucian Mogoșanu +date: July 20, 2013 +--- + +**TODO** diff --git a/site.hs b/site.hs index 53d8bff..85dd540 100644 --- a/site.hs +++ b/site.hs @@ -7,6 +7,7 @@ main = hakyll $ do match "index.html" compileIndex match "css/*" compileCss match "posts/*" compilePosts + match (fromList ["about.markdown"]) compilePages match "templates/*" $ compile templateCompiler compileIndex :: Rules () @@ -35,5 +36,12 @@ compilePosts = do >>= loadAndApplyTemplate "templates/default.html" postCtx >>= relativizeUrls +compilePages :: Rules () +compilePages = do + route $ setExtension "html" + compile $ pandocCompiler + >>= loadAndApplyTemplate "templates/default.html" defaultContext + >>= relativizeUrls + postCtx :: Context String postCtx = dateField "date" "%B %e, %Y" `mappend` defaultContext diff --git a/templates/default.html b/templates/default.html index 20c719c..4f248a0 100644 --- a/templates/default.html +++ b/templates/default.html @@ -15,7 +15,7 @@ The Tar Pit