@@ -41,9 +41,11 @@ Templates
4141
4242Let's have a look at a simple template:
4343
44− <h1>$title$</h1>
45− <div class="info">Posted on $date$</div>
46− $body$
44+```html
45+<h1>$title$</h1>
46+<div class="info">Posted on $date$</div>
47+$body$
48+```
4749
4850As you can probably guess, template files just contain text and only the `$`
4951character has special meaning: text between dollar signs ("fields") is replaced
@@ -53,7 +55,9 @@ use `$$`.
5355You usually compile the templates from disk using the aptly named
5456`templateCompiler`:
5557
56− match "templates/*" $ compile templateCompiler
58+```haskell
59+match "templates/*" $ compile templateCompiler
60+```
5761
5862Notice the lack of `route` here: this is because we don't need to write the
5963templates to your `_site` folder, we just want to use them elsewhere.
@@ -86,7 +90,7 @@ And `$title$` like this:
8690
8791```haskell
8892titleContext :: Context a
89−titleContext :: field "title" $ \item -> do
93+titleContext = field "title" $ \item -> do
9094 metadata <- getMetadata (itemIdentifier item)
9195 return $ fromMaybe "No title" $ M.lookup "title" metadata
9296```