hakyll-series-0.1.0.1: Adds series functionality to hakyll

Safe HaskellNone
LanguageHaskell2010

Hakyll.Web.Series

Description

Module for adding series functionality to a blog, similar to tags.

Synopsis

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.

buildSeries Source #

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.