diff options
| author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-01-19 10:08:57 +0100 |
|---|---|---|
| committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-01-19 10:08:57 +0100 |
| commit | e9dd4c75a21ee9bc8f42ea725d071974127a97d1 (patch) | |
| tree | b54c9d17d9bfd6e532cf7fffd4c63cf293f875f4 /examples | |
| parent | 77f9129e732c9273c6f92d5c0666f8d4d82b8664 (diff) | |
| download | hakyll-e9dd4c75a21ee9bc8f42ea725d071974127a97d1.tar.gz | |
Added some experimental features to the hakyll site.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/hakyll/css/default.css | 2 | ||||
| -rw-r--r-- | examples/hakyll/hakyll.hs | 7 | ||||
| -rw-r--r-- | examples/hakyll/sidebar.markdown | 8 | ||||
| -rw-r--r-- | examples/hakyll/templates/default.html | 9 |
4 files changed, 15 insertions, 11 deletions
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 @@ </div> <!-- Sidebar. --> <div id="sidebar"> - <h2>Navigation</h2> - <div id="navigation"> - <a href="index.html">home</a> - <a href="philosophy.html">philosophy</a> - <a href="about.html">about</a> - <a href="tutorials.html">tutorials</a> - <a href="reference.html">reference</a> - </div> + $sidebar </div> <div id="content"> |
