Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 691 Bytes

README.md

File metadata and controls

18 lines (15 loc) · 691 Bytes

Hakyll + ogmarkup

With the module, you can use the ogmarkup language to write your stories and Hakyll to publish them.

For instance, one can add the following lines (considering HakyllConf is a valid ogmarkup configuration which has been defined elsewere, see ogmarkup configuration for additional information):

    match "w/*" $ do
        route $ setExtension "html"
        compile $ ogmarkupCompile HakyllConf
            >>= loadAndApplyTemplate "templates/post.html"    postCtx
            >>= loadAndApplyTemplate "templates/default.html" postCtx
            >>= relativizeUrls