summaryrefslogtreecommitdiff
path: root/examples
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
parent15733a1a1ab5f01ae7595506a8809317326f362d (diff)
downloadhakyll-4e3c26b01c369a3a70467ae4f925427775bb2726.tar.gz
Migrated examples to use $root.
Diffstat (limited to 'examples')
-rw-r--r--examples/brochure/templates/default.html8
-rw-r--r--examples/rssblog/index.html2
-rw-r--r--examples/rssblog/templates/default.html6
-rw-r--r--examples/rssblog/templates/postitem.html2
-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
-rw-r--r--examples/tagblog/index.html2
-rw-r--r--examples/tagblog/templates/default.html6
-rw-r--r--examples/tagblog/templates/postitem.html2
11 files changed, 21 insertions, 20 deletions
diff --git a/examples/brochure/templates/default.html b/examples/brochure/templates/default.html
index 2e41112..c587bd5 100644
--- a/examples/brochure/templates/default.html
+++ b/examples/brochure/templates/default.html
@@ -4,14 +4,14 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>MyAweSomeCompany - $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>MyAweSomeCompany - $title</h1>
<div id="navigation">
- <a href="index.html">Home</a>
- <a href="about.html">About</a>
- <a href="products.html">Products</a>
+ <a href="$root/index.html">Home</a>
+ <a href="$root/about.html">About</a>
+ <a href="$root/products.html">Products</a>
</div>
$body
diff --git a/examples/rssblog/index.html b/examples/rssblog/index.html
index e628bd6..201cc18 100644
--- a/examples/rssblog/index.html
+++ b/examples/rssblog/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/rssblog/templates/default.html b/examples/rssblog/templates/default.html
index 21429fa..52678b7 100644
--- a/examples/rssblog/templates/default.html
+++ b/examples/rssblog/templates/default.html
@@ -4,7 +4,7 @@
<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" />
<link rel="alternate"
type="application/rss+xml"
title="SimpleBlog"
@@ -13,8 +13,8 @@
<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/rssblog/templates/postitem.html b/examples/rssblog/templates/postitem.html
index a14687b..0e62418 100644
--- a/examples/rssblog/templates/postitem.html
+++ b/examples/rssblog/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>
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>
diff --git a/examples/tagblog/index.html b/examples/tagblog/index.html
index 777433d..e520791 100644
--- a/examples/tagblog/index.html
+++ b/examples/tagblog/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>
$tagcloud
</div>
diff --git a/examples/tagblog/templates/default.html b/examples/tagblog/templates/default.html
index 21429fa..52678b7 100644
--- a/examples/tagblog/templates/default.html
+++ b/examples/tagblog/templates/default.html
@@ -4,7 +4,7 @@
<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" />
<link rel="alternate"
type="application/rss+xml"
title="SimpleBlog"
@@ -13,8 +13,8 @@
<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/tagblog/templates/postitem.html b/examples/tagblog/templates/postitem.html
index a14687b..0e62418 100644
--- a/examples/tagblog/templates/postitem.html
+++ b/examples/tagblog/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>