summaryrefslogtreecommitdiff
path: root/examples/simpleblog
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-01-10 21:45:36 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-01-10 21:45:36 +0100
commit4e3c26b01c369a3a70467ae4f925427775bb2726 (patch)
treecce1e0084d95a5a57cf575e3faf1e21aa728021a /examples/simpleblog
parent15733a1a1ab5f01ae7595506a8809317326f362d (diff)
downloadhakyll-4e3c26b01c369a3a70467ae4f925427775bb2726.tar.gz
Migrated examples to use $root.
Diffstat (limited to 'examples/simpleblog')
-rw-r--r--examples/simpleblog/hakyll.hs3
-rw-r--r--examples/simpleblog/index.html2
-rw-r--r--examples/simpleblog/templates/default.html6
-rw-r--r--examples/simpleblog/templates/postitem.html2
4 files changed, 7 insertions, 6 deletions
diff --git a/examples/simpleblog/hakyll.hs b/examples/simpleblog/hakyll.hs
index 46dbb14..205ceb2 100644
--- a/examples/simpleblog/hakyll.hs
+++ b/examples/simpleblog/hakyll.hs
@@ -1,7 +1,8 @@
module Main where
import Text.Hakyll (hakyll)
-import Text.Hakyll.Render (renderAndConcat, renderChain, css)
+import Text.Hakyll.Render
+import Text.Hakyll.Context
import Text.Hakyll.File (getRecursiveContents, directory)
import Text.Hakyll.Renderables (createPagePath, createCustomPage)
import Data.List (sort)
diff --git a/examples/simpleblog/index.html b/examples/simpleblog/index.html
index e628bd6..201cc18 100644
--- a/examples/simpleblog/index.html
+++ b/examples/simpleblog/index.html
@@ -3,7 +3,7 @@
<ul>
$posts
</ul>
- <a href="/posts.html">All posts...</a>
+ <a href="$root/posts.html">All posts...</a>
</div>
<div class="about">
diff --git a/examples/simpleblog/templates/default.html b/examples/simpleblog/templates/default.html
index 5fd7cc8..a9369b7 100644
--- a/examples/simpleblog/templates/default.html
+++ b/examples/simpleblog/templates/default.html
@@ -4,13 +4,13 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>SimpleBlog - $title</title>
- <link rel="stylesheet" type="text/css" href="/css/default.css" />
+ <link rel="stylesheet" type="text/css" href="$root/css/default.css" />
</head>
<body>
<h1>SimpleBlog - $title</h1>
<div id="navigation">
- <a href="/index.html">Home</a>
- <a href="/posts.html">All posts</a>
+ <a href="$root/index.html">Home</a>
+ <a href="$root/posts.html">All posts</a>
</div>
$body
diff --git a/examples/simpleblog/templates/postitem.html b/examples/simpleblog/templates/postitem.html
index a14687b..0e62418 100644
--- a/examples/simpleblog/templates/postitem.html
+++ b/examples/simpleblog/templates/postitem.html
@@ -1,4 +1,4 @@
<li>
- <a href="/$url">$title</a>
+ <a href="$root/$url">$title</a>
- <em>$date</em> - by <em>$author</em>
</li>