From 16c8c5a84af3e63d17d34fae1aeb471f48d03faa Mon Sep 17 00:00:00 2001 From: Lucian Mogosanu Date: Sat, 20 Jul 2013 11:36:49 +0300 Subject: [PATCH] add about page --- about.markdown | 7 +++++++ site.hs | 8 ++++++++ templates/default.html | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 about.markdown 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 -- 1.7.10.4