diff options
| author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-05-30 11:45:22 +0200 |
|---|---|---|
| committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-05-30 11:45:22 +0200 |
| commit | 44fc490a418d1d102633d74626e6343c827a5758 (patch) | |
| tree | e0bec98450a41f329e9080333c790bda9c825223 /src | |
| parent | 7f7494cd1448ea4c05756abdf2d6dd4d8430cd31 (diff) | |
| download | hakyll-44fc490a418d1d102633d74626e6343c827a5758.tar.gz | |
Minor changes in Page haddocks
Diffstat (limited to 'src')
| -rw-r--r-- | src/Hakyll/Core/Compiler.hs | 2 | ||||
| -rw-r--r-- | src/Hakyll/Web/Page.hs | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/Hakyll/Core/Compiler.hs b/src/Hakyll/Core/Compiler.hs index 28d466c..d63c420 100644 --- a/src/Hakyll/Core/Compiler.hs +++ b/src/Hakyll/Core/Compiler.hs @@ -230,7 +230,7 @@ getDependency id' = CompilerM $ do Found x -> return x where notFound = - "Hakyll.Core.Compiler.getDependency: " ++ show id' ++ " was " + "Hakyll.Core.Compiler.getDependency: " ++ show id' ++ " was " ++ "not found in the cache, the cache might be corrupted or " ++ "the item you are referring to might not exist" wrongType e r = diff --git a/src/Hakyll/Web/Page.hs b/src/Hakyll/Web/Page.hs index bcc3aba..7520215 100644 --- a/src/Hakyll/Web/Page.hs +++ b/src/Hakyll/Web/Page.hs @@ -3,13 +3,16 @@ -- A page is an important concept in Hakyll. It is a key-value mapping, and has -- one field with an arbitrary type. A 'Page' thus consists of -- --- * a key-value mapping (of the type @Map String String@); +-- * metadata (of the type @Map String String@); -- --- * a value (of the type @a@). +-- * the actual value (of the type @a@). -- -- Usually, the value will be a 'String' as well, and the value will be the body -- of the page. -- +-- However, this is certainly no restriction. For example, @Page ByteString@ +-- could be used to represent a binary item (e.g. an image) and some metadata. +-- -- Pages can be constructed using Haskell, but they are usually parsed from a -- file. The file format for pages is pretty straightforward. -- @@ -18,7 +21,7 @@ -- -- This is a valid page with two lines. If we load this in Hakyll, there would -- be no metadata, and the body would be the given text. Let's look at a page --- with some metadata. +-- with some metadata: -- -- > --- -- > title: Alice's Adventures in Wonderland |
