Commit graph

5 commits

Author SHA1 Message Date
Jasper Van der Jeugt
bb9ea6f122 Add newtype for Context 2010-06-20 10:45:17 +02:00
Jasper Van der Jeugt
ff57c2f660 Added fix to allow dashes in pages.
Hakyll splits pages into metadata sections by lines starting
with `---`. Because of this, thing like

    Header
    ------

    Some text.

will not parse. This commit fixes this, by fixating the length
of the the dash pattern -- all dashed lines should contain the
same number of dashes. Therefor, you can use something like

    ---
    title: Foobar
    ---

    Header
    ------

    Some text.
2010-04-04 15:08:59 +02:00
Jasper Van der Jeugt
417a9a92d8 Added test case for non-metadata pages. 2010-04-01 12:26:31 +02:00
Jasper Van der Jeugt
c9e3458083 Added .txt support, tests update.
- Pure text files are now supported.
- We now hide the Internal modules.
- Tests should be run through ghci.
- Added testing of page reading.
2010-03-26 14:10:10 +01:00
Jasper Van der Jeugt
8e78fe04f6 Made Arbitrary Page instance. 2010-01-25 15:12:20 +01:00