hakyllbars-1.0.1.0: A Hakyll compiler for Handlebars-like templates
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hakyllbars.Field.Git

Synopsis

Documentation

gitFields Source #

Arguments

:: String

The configured hakyll provider directory.

-> String

The base url to the online git repository for browsing.

-> Context a 

The Git fields configuration.

gitSha1Compiler :: String -> Item a -> TemplateRunner a String Source #

Gets the git-sha1 hash of the current item.

gitMessageCompiler :: String -> Item a -> TemplateRunner a String Source #

Gets the git commit message of the current item.

gitLogField :: LogFormat -> String -> Item a -> TemplateRunner a String Source #

Extracts a latest git log field from the current item.

gitFileField Source #

Arguments

:: IntoValue v a 
=> String

The hakyll provider directory.

-> String

The field name.

-> (GitFile -> v)

The getter for the git file field.

-> Context a 

gets a given field from the git file.

gitFileCompiler Source #

Arguments

:: String

The hakyll provider directory.

-> Item a

The item to compile.

-> TemplateRunner a GitFile 

Compiles the git file for the given item.