| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Hakyll.Web.Series
Description
Module for adding series functionality to a blog, similar to tags.
- seriesField :: Tags -> Context a
- getSeries :: MonadMetadata m => Identifier -> m (Maybe String)
- buildSeries :: MonadMetadata m => Pattern -> (String -> Identifier) -> m Tags
Documentation
seriesField :: Tags -> Context a Source #
Generates four fields:
series- The name of the series
seriesLength- The total number of posts in the series
seriesCurPos- The position of the current post in the series
seriesUrl- The URL of the series page
getSeries :: MonadMetadata m => Identifier -> m (Maybe String) Source #
Gets the series from an identifier. Similar to getTags,
except it only accepts one series per identifier.
Arguments
| :: MonadMetadata m | |
| => Pattern | |
| -> (String -> Identifier) | Function for converting a given series name into an identifier for its page |
| -> m Tags |
Similar to the buildTags function in Hakyll.Web.Tags, except
checks the series field, and can only accept one series per item.