hakyll-filestore-0.1.10: FileStore utilities for Hakyll
Safe HaskellNone
LanguageHaskell2010

Hakyll.FileStore.Context

Synopsis

Documentation

fsGetItemUTC Source #

Arguments

:: FileStore

FileStore to work in

-> TimeLocale

Output time locale

-> Identifier

Input page

-> Compiler UTCTime

Returns the time of the first revision if revisions are available, date of the identifier otherwise

fsGetItemUTC' Source #

Arguments

:: FileStore

FileStore to work in

-> Identifier

Input page

-> Compiler (Maybe UTCTime)

Returns Just the time of the first revision if the file has some revisions, Nothing otherwise

fsDateField Source #

Arguments

:: FileStore

FileStore to work in

-> String

Destination key

-> String

Format to use on the date

-> Context a

Resulting context

fsDateFieldWith Source #

Arguments

:: FileStore

FileStore to work in

-> TimeLocale

Output time locale

-> String

Destination key

-> String

Format to use on the date

-> Context a

Resulting context

fsGetItemModificationTime Source #

Arguments

:: FileStore

FileStore to work in

-> Identifier

Input page

-> Compiler UTCTime

Returns the time of the last revision if revisions are available, modification time of the file otherwise.

fsGetItemModificationTime' Source #

Arguments

:: FileStore

FileStore to work in

-> Identifier

Identifier in question

-> Compiler (Maybe UTCTime)

Returns Just the time of last revision if the file has some revisions, Nothing otherwise.

fsModificationTimeField Source #

Arguments

:: FileStore

FileStore to work in

-> String

Destination key

-> String

Format to use on the date

-> Context a

Resulting context

fsModificationTimeFieldWith Source #

Arguments

:: FileStore

FileStore to work in

-> TimeLocale

Output time locale

-> String

Destination key

-> String

Format to use on the date

-> Context a

Resulting context

fsGetRevisions Source #

Arguments

:: FileStore

FileStore to work in

-> Identifier

Input Page

-> Compiler [Revision]

Returns the revisions of the page in reverse chronological order

fsGetAuthors Source #

Arguments

:: FileStore

FileStore to work in

-> Identifier

Input Page

-> Compiler [Author]

Returns the authors of the page in chronological order of occurence in the revisions

fsGetAuthorNames Source #

Arguments

:: FileStore

FileStore to work in

-> Identifier

Input Page

-> Compiler [String]

Returns the names of the authors of the page in chronological order of occurence in the revisions

fsAuthorNamesField Source #

Arguments

:: FileStore

FileStore to work in

-> String

Destination key

-> Context a

Resulting context

fsAuthorNamesField = flip fsAuthorNamesFieldWith ", "

fsAuthorNamesFieldWith Source #

Arguments

:: FileStore

FileStore to work in

-> String

Intercalation delimeter

-> String

Destination key

-> Context a

Resulting context

Field consisting of the names of the authors separated by the given delimeter.

fsGetAuthorEmails Source #

Arguments

:: FileStore

FileStore to work in

-> Identifier

Input Page

-> Compiler [String]

Returns the email addresses of the authors of the page in chronological chronological order of occurence in the revisions

fsAuthorEmailsField Source #

Arguments

:: FileStore

FileStore to work in

-> String

Destination key

-> Context a

Resulting context

fsAuthorEmailsField = flip fsAuthorEmailsFieldWith ", "

fsAuthorEmailsFieldWith Source #

Arguments

:: FileStore

FileStore to work in

-> String

Intercalation delimeter

-> String

Destination key

-> Context a

Resulting context

Field consisting of the email addresses of the authors separated by the given delimeter.