From e9dd4c75a21ee9bc8f42ea725d071974127a97d1 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Tue, 19 Jan 2010 10:08:57 +0100 Subject: Added some experimental features to the hakyll site. --- examples/hakyll/css/default.css | 2 +- examples/hakyll/hakyll.hs | 7 +++++-- examples/hakyll/sidebar.markdown | 8 ++++++++ examples/hakyll/templates/default.html | 9 +-------- 4 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 examples/hakyll/sidebar.markdown (limited to 'examples') diff --git a/examples/hakyll/css/default.css b/examples/hakyll/css/default.css index af75d49..8cc4030 100644 --- a/examples/hakyll/css/default.css +++ b/examples/hakyll/css/default.css @@ -40,7 +40,7 @@ div#sidebar { text-align: right; } -div#navigation a { +div#sidebar a { display: block; font-size: 110%; text-decoration: none; diff --git a/examples/hakyll/hakyll.hs b/examples/hakyll/hakyll.hs index de97c56..4e3b3b6 100644 --- a/examples/hakyll/hakyll.hs +++ b/examples/hakyll/hakyll.hs @@ -21,7 +21,7 @@ main = hakyll defaultHakyllConfiguration $ do [ ("title", Left "Tutorials") , ("tutorials", Right tutorialList) ] - renderChain ["templates/tutorials.html", "templates/default.html"] tutorialPage + renderChain ["templates/tutorials.html", "templates/default.html"] $ withSidebar tutorialPage mapM_ render' $ [ "about.markdown" , "index.markdown" @@ -29,4 +29,7 @@ main = hakyll defaultHakyllConfiguration $ do , "reference.markdown" ] ++ tutorials - where render' = renderChain ["templates/default.html"] . createPagePath + where + render' = renderChain ["templates/default.html"] . withSidebar . createPagePath + withSidebar a = a `combine` createPagePath "sidebar.markdown" + diff --git a/examples/hakyll/sidebar.markdown b/examples/hakyll/sidebar.markdown new file mode 100644 index 0000000..cabc8af --- /dev/null +++ b/examples/hakyll/sidebar.markdown @@ -0,0 +1,8 @@ +--- sidebar +## Navigation + +[home](index.html) +[philosophy](philosophy.html) +[about](about.html) +[tutorials](tutorials.html) +[reference](reference.html) diff --git a/examples/hakyll/templates/default.html b/examples/hakyll/templates/default.html index 6b04b9e..ee0b57a 100644 --- a/examples/hakyll/templates/default.html +++ b/examples/hakyll/templates/default.html @@ -21,14 +21,7 @@
-- cgit v1.2.3