on master help sign in
Migrated examples to use $root.
4e3c26bJasper Van der Jeugt
examples/brochure/templates/default.html+4−4
@@ -4,14 +4,14 @@
4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5 <head>
5 <head>
6 <title>MyAweSomeCompany - $title</title>
6 <title>MyAweSomeCompany - $title</title>
7− <link rel="stylesheet" type="text/css" href="css/default.css" />
7+ <link rel="stylesheet" type="text/css" href="$root/css/default.css" />
8 </head>
8 </head>
9 <body>
9 <body>
10 <h1>MyAweSomeCompany - $title</h1>
10 <h1>MyAweSomeCompany - $title</h1>
11 <div id="navigation">
11 <div id="navigation">
12− <a href="index.html">Home</a>
12+ <a href="$root/index.html">Home</a>
13− <a href="about.html">About</a>
13+ <a href="$root/about.html">About</a>
14− <a href="products.html">Products</a>
14+ <a href="$root/products.html">Products</a>
15 </div>
15 </div>
16
16
17 $body
17 $body
examples/rssblog/index.html+1−1
@@ -3,7 +3,7 @@
3 <ul>
3 <ul>
4 $posts
4 $posts
5 </ul>
5 </ul>
6− <a href="/posts.html">All posts...</a>
6+ <a href="$root/posts.html">All posts...</a>
7</div>
7</div>
8
8
9<div class="about">
9<div class="about">
examples/rssblog/templates/default.html+3−3
@@ -4,7 +4,7 @@
4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5 <head>
5 <head>
6 <title>SimpleBlog - $title</title>
6 <title>SimpleBlog - $title</title>
7− <link rel="stylesheet" type="text/css" href="/css/default.css" />
7+ <link rel="stylesheet" type="text/css" href="$root/css/default.css" />
8 <link rel="alternate"
8 <link rel="alternate"
9 type="application/rss+xml"
9 type="application/rss+xml"
10 title="SimpleBlog"
10 title="SimpleBlog"
@@ -13,8 +13,8 @@
13 <body>
13 <body>
14 <h1>SimpleBlog - $title</h1>
14 <h1>SimpleBlog - $title</h1>
15 <div id="navigation">
15 <div id="navigation">
16− <a href="/index.html">Home</a>
16+ <a href="$root/index.html">Home</a>
17− <a href="/posts.html">All posts</a>
17+ <a href="$root/posts.html">All posts</a>
18 </div>
18 </div>
19
19
20 $body
20 $body
examples/rssblog/templates/postitem.html+1−1
@@ -1,4 +1,4 @@
1<li>
1<li>
2− <a href="/$url">$title</a>
2+ <a href="$root/$url">$title</a>
3 - <em>$date</em> - by <em>$author</em>
3 - <em>$date</em> - by <em>$author</em>
4</li>
4</li>
examples/simpleblog/hakyll.hs+2−1
@@ -1,7 +1,8 @@
1module Main where
1module Main where
2
2
3import Text.Hakyll (hakyll)
3import Text.Hakyll (hakyll)
4−import Text.Hakyll.Render (renderAndConcat, renderChain, css)
4+import Text.Hakyll.Render
5+import Text.Hakyll.Context
5import Text.Hakyll.File (getRecursiveContents, directory)
6import Text.Hakyll.File (getRecursiveContents, directory)
6import Text.Hakyll.Renderables (createPagePath, createCustomPage)
7import Text.Hakyll.Renderables (createPagePath, createCustomPage)
7import Data.List (sort)
8import Data.List (sort)
examples/simpleblog/index.html+1−1
@@ -3,7 +3,7 @@
3 <ul>
3 <ul>
4 $posts
4 $posts
5 </ul>
5 </ul>
6− <a href="/posts.html">All posts...</a>
6+ <a href="$root/posts.html">All posts...</a>
7</div>
7</div>
8
8
9<div class="about">
9<div class="about">
examples/simpleblog/templates/default.html+3−3
@@ -4,13 +4,13 @@
4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5 <head>
5 <head>
6 <title>SimpleBlog - $title</title>
6 <title>SimpleBlog - $title</title>
7− <link rel="stylesheet" type="text/css" href="/css/default.css" />
7+ <link rel="stylesheet" type="text/css" href="$root/css/default.css" />
8 </head>
8 </head>
9 <body>
9 <body>
10 <h1>SimpleBlog - $title</h1>
10 <h1>SimpleBlog - $title</h1>
11 <div id="navigation">
11 <div id="navigation">
12− <a href="/index.html">Home</a>
12+ <a href="$root/index.html">Home</a>
13− <a href="/posts.html">All posts</a>
13+ <a href="$root/posts.html">All posts</a>
14 </div>
14 </div>
15
15
16 $body
16 $body
examples/simpleblog/templates/postitem.html+1−1
@@ -1,4 +1,4 @@
1<li>
1<li>
2− <a href="/$url">$title</a>
2+ <a href="$root/$url">$title</a>
3 - <em>$date</em> - by <em>$author</em>
3 - <em>$date</em> - by <em>$author</em>
4</li>
4</li>
examples/tagblog/index.html+1−1
@@ -3,7 +3,7 @@
3 <ul>
3 <ul>
4 $posts
4 $posts
5 </ul>
5 </ul>
6− <a href="/posts.html">All posts...</a>
6+ <a href="$root/posts.html">All posts...</a>
7 <div>
7 <div>
8 $tagcloud
8 $tagcloud
9 </div>
9 </div>
examples/tagblog/templates/default.html+3−3
@@ -4,7 +4,7 @@
4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5 <head>
5 <head>
6 <title>SimpleBlog - $title</title>
6 <title>SimpleBlog - $title</title>
7− <link rel="stylesheet" type="text/css" href="/css/default.css" />
7+ <link rel="stylesheet" type="text/css" href="$root/css/default.css" />
8 <link rel="alternate"
8 <link rel="alternate"
9 type="application/rss+xml"
9 type="application/rss+xml"
10 title="SimpleBlog"
10 title="SimpleBlog"
@@ -13,8 +13,8 @@
13 <body>
13 <body>
14 <h1>SimpleBlog - $title</h1>
14 <h1>SimpleBlog - $title</h1>
15 <div id="navigation">
15 <div id="navigation">
16− <a href="/index.html">Home</a>
16+ <a href="$root/index.html">Home</a>
17− <a href="/posts.html">All posts</a>
17+ <a href="$root/posts.html">All posts</a>
18 </div>
18 </div>
19
19
20 $body
20 $body
examples/tagblog/templates/postitem.html+1−1
@@ -1,4 +1,4 @@
1<li>
1<li>
2− <a href="/$url">$title</a>
2+ <a href="$root/$url">$title</a>
3 - <em>$date</em> - by <em>$author</em>
3 - <em>$date</em> - by <em>$author</em>
4</li>
4</li>