Skip to content

Integrate ogmarkup document with Hakyll

License

Notifications You must be signed in to change notification settings

ogma-project/hakyll-ogmarkup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Integrate ogmarkup document with Hakyll

Resources

License

Stars

Watchers

Forks

Packages

No packages published