on master help sign in
Migrated examples to use $root.
commit4e3c26b01c369a3a70467ae4f925427775bb2726 authorJasper Van der Jeugt <jaspervdj@gmail.com> dateSun 10 Jan 2010, 21:45 (17 years ago) parent15733a1
11 files changed+21−20
examples/brochure/templates/default.html+4−4 examples/rssblog/index.html+1−1 examples/rssblog/templates/default.html+3−3 examples/rssblog/templates/postitem.html+1−1 examples/simpleblog/hakyll.hs+2−1 examples/simpleblog/index.html+1−1 examples/simpleblog/templates/default.html+3−3 examples/simpleblog/templates/postitem.html+1−1 examples/tagblog/index.html+1−1 examples/tagblog/templates/default.html+3−3 examples/tagblog/templates/postitem.html+1−1
examples/brochure/templates/default.html+4−4
@@ -4,14 +4,14 @@
44<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
55 <head>
66 <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" />
88 </head>
99 <body>
1010 <h1>MyAweSomeCompany - $title</h1>
1111 <div id="navigation">
12− <a href="index.html">Home</a>
13− <a href="about.html">About</a>
14− <a href="products.html">Products</a>
12+ <a href="$root/index.html">Home</a>
13+ <a href="$root/about.html">About</a>
14+ <a href="$root/products.html">Products</a>
1515 </div>
1616
1717 $body
examples/rssblog/index.html+1−1
@@ -3,7 +3,7 @@
33 <ul>
44 $posts
55 </ul>
6− <a href="/posts.html">All posts...</a>
6+ <a href="$root/posts.html">All posts...</a>
77</div>
88
99<div class="about">
examples/rssblog/templates/default.html+3−3
@@ -4,7 +4,7 @@
44<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
55 <head>
66 <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" />
88 <link rel="alternate"
99 type="application/rss+xml"
1010 title="SimpleBlog"
@@ -13,8 +13,8 @@
1313 <body>
1414 <h1>SimpleBlog - $title</h1>
1515 <div id="navigation">
16− <a href="/index.html">Home</a>
17− <a href="/posts.html">All posts</a>
16+ <a href="$root/index.html">Home</a>
17+ <a href="$root/posts.html">All posts</a>
1818 </div>
1919
2020 $body
examples/rssblog/templates/postitem.html+1−1
@@ -1,4 +1,4 @@
11<li>
2− <a href="/$url">$title</a>
2+ <a href="$root/$url">$title</a>
33 - <em>$date</em> - by <em>$author</em>
44</li>
examples/simpleblog/hakyll.hs+2−1
@@ -1,7 +1,8 @@
11module Main where
22
33import Text.Hakyll (hakyll)
4−import Text.Hakyll.Render (renderAndConcat, renderChain, css)
4+import Text.Hakyll.Render
5+import Text.Hakyll.Context
56import Text.Hakyll.File (getRecursiveContents, directory)
67import Text.Hakyll.Renderables (createPagePath, createCustomPage)
78import Data.List (sort)
examples/simpleblog/index.html+1−1
@@ -3,7 +3,7 @@
33 <ul>
44 $posts
55 </ul>
6− <a href="/posts.html">All posts...</a>
6+ <a href="$root/posts.html">All posts...</a>
77</div>
88
99<div class="about">
examples/simpleblog/templates/default.html+3−3
@@ -4,13 +4,13 @@
44<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
55 <head>
66 <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" />
88 </head>
99 <body>
1010 <h1>SimpleBlog - $title</h1>
1111 <div id="navigation">
12− <a href="/index.html">Home</a>
13− <a href="/posts.html">All posts</a>
12+ <a href="$root/index.html">Home</a>
13+ <a href="$root/posts.html">All posts</a>
1414 </div>
1515
1616 $body
examples/simpleblog/templates/postitem.html+1−1
@@ -1,4 +1,4 @@
11<li>
2− <a href="/$url">$title</a>
2+ <a href="$root/$url">$title</a>
33 - <em>$date</em> - by <em>$author</em>
44</li>
examples/tagblog/index.html+1−1
@@ -3,7 +3,7 @@
33 <ul>
44 $posts
55 </ul>
6− <a href="/posts.html">All posts...</a>
6+ <a href="$root/posts.html">All posts...</a>
77 <div>
88 $tagcloud
99 </div>
examples/tagblog/templates/default.html+3−3
@@ -4,7 +4,7 @@
44<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
55 <head>
66 <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" />
88 <link rel="alternate"
99 type="application/rss+xml"
1010 title="SimpleBlog"
@@ -13,8 +13,8 @@
1313 <body>
1414 <h1>SimpleBlog - $title</h1>
1515 <div id="navigation">
16− <a href="/index.html">Home</a>
17− <a href="/posts.html">All posts</a>
16+ <a href="$root/index.html">Home</a>
17+ <a href="$root/posts.html">All posts</a>
1818 </div>
1919
2020 $body
examples/tagblog/templates/postitem.html+1−1
@@ -1,4 +1,4 @@
11<li>
2− <a href="/$url">$title</a>
2+ <a href="$root/$url">$title</a>
33 - <em>$date</em> - by <em>$author</em>
44</li>