| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Hakyll.FileStore.Context
Synopsis
- fsGetItemUTC :: FileStore -> TimeLocale -> Identifier -> Compiler UTCTime
- fsGetItemUTC' :: FileStore -> Identifier -> Compiler (Maybe UTCTime)
- fsDateField :: FileStore -> String -> String -> Context a
- fsDateFieldWith :: FileStore -> TimeLocale -> String -> String -> Context a
- fsGetItemModificationTime :: FileStore -> Identifier -> Compiler UTCTime
- fsGetItemModificationTime' :: FileStore -> Identifier -> Compiler (Maybe UTCTime)
- fsModificationTimeField :: FileStore -> String -> String -> Context a
- fsModificationTimeFieldWith :: FileStore -> TimeLocale -> String -> String -> Context a
- fsGetRevisions :: FileStore -> Identifier -> Compiler [Revision]
- fsGetAuthors :: FileStore -> Identifier -> Compiler [Author]
- fsGetAuthorNames :: FileStore -> Identifier -> Compiler [String]
- fsAuthorNamesField :: FileStore -> String -> Context a
- fsAuthorNamesFieldWith :: FileStore -> String -> String -> Context a
- fsGetAuthorEmails :: FileStore -> Identifier -> Compiler [String]
- fsAuthorEmailsField :: FileStore -> String -> Context a
- fsAuthorEmailsFieldWith :: FileStore -> String -> String -> Context a
Documentation
Arguments
| :: FileStore |
|
| -> 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 |
fsGetItemModificationTime Source #
Arguments
| :: FileStore |
|
| -> Identifier | Input page |
| -> Compiler UTCTime | Returns the time of the last revision if revisions are available, modification time of the file otherwise. |
Arguments
| :: FileStore |
|
| -> Identifier | Input Page |
| -> Compiler [Revision] | Returns the revisions of the page in reverse chronological order |
Arguments
| :: FileStore |
|
| -> Identifier | Input Page |
| -> Compiler [Author] | Returns the authors of the page in chronological order of occurence in the revisions |
Arguments
| :: FileStore |
|
| -> Identifier | Input Page |
| -> Compiler [String] | Returns the names of the authors of the page in chronological order of occurence in the revisions |
fsAuthorNamesField = flip fsAuthorNamesFieldWith ", "
fsAuthorNamesFieldWith Source #
Arguments
| :: FileStore |
|
| -> String | Intercalation delimeter |
| -> String | Destination key |
| -> Context a | Resulting context |
Field consisting of the names of the authors separated by the given delimeter.
Arguments
| :: FileStore |
|
| -> 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 = flip fsAuthorEmailsFieldWith ", "