@@ -61,10 +61,10 @@ it will generate a very nice main function.
6161## Pages
6262
6363An important concept in Hakyll is Pages. Pages are text files that can be
64−written in markdown, html or TeX. Furthermore, they can also contain some
65−metadata. The metadata is placed in the file header and surrouded by `---`
66−lines. Each line should contain a `key: value` pair. Let's have a look at the
67−`about.markdown` page.
64+written in markdown, html, rst... basically anything Pandoc supports.
65+Furthermore, they can also contain some metadata. The metadata is placed in the
66+file header and surrouded by `---` lines. Each line should contain a
67+`key: value` pair. Let's have a look at the `index.markdown` page.
6868
6969 ---
7070 title: About
@@ -91,13 +91,15 @@ html files) containing a number of keys. The syntax for these keys is
9191 <title>MyAweSomeCompany - $title</title>
9292 <link rel="stylesheet" type="text/css"
9393 href="$$root/css/default.css" />
94+ <link rel="stylesheet" type="text/css"
95+ href="$$root/css/syntax.css" />
9496 </head>
9597 <body>
9698 <h1>MyAweSomeCompany - $title</h1>
9799 <div id="navigation">
98100 <a href="$$root/index.html">Home</a>
99101 <a href="$$root/about.html">About</a>
100− <a href="$$root/products.html">Products</a>
102+ <a href="$$root/code.html">Code</a>
101103 </div>
102104
103105 $body
@@ -135,7 +137,7 @@ import Text.Hakyll.Render (renderChain)
135137import Text.Hakyll.Renderables (createPagePath)
136138main = hakyll $ do
137139 renderChain ["templates/default.html"]
138− (createPagePath "about.markdown")
140+ (createPagePath "index.markdown")
139141~~~~~
140142
141143Or, to render all our three pages:
@@ -145,19 +147,20 @@ import Text.Hakyll (hakyll)
145147import Text.Hakyll.Render (renderChain)
146148import Text.Hakyll.Renderables (createPagePath)
147149main = hakyll $ do
148− render "about.markdown"
150+ render "about.rst"
149151 render "index.markdown"
150− render "products.markdown"
152+ render "code.lhs"
151153 where render = renderChain ["templates/default.html"]
152154 . createPagePath
153155~~~~~
154156
155−This will create the following files:
157+As you can see, we can render a variety of formats. This will create the
158+following files:
156159
157160~~~~~
158161_site/about.html
159162_site/index.html
160−_site/products.html
163+_site/code.html
161164~~~~~
162165
163166## CSS, images and other static files