hakyll-1.0.1: A simple static site generator library.

Text.Hakyll.Tags

Description

Module containing some specialized functions to deal with tags. This Module follows certain conventions. Stick with them.

Synopsis

Documentation

readTagMap :: [FilePath] -> IO (Map String [FilePath])Source

Read a tag map. This creates a map from tags to page paths. This function assumes the tags are located in the tags metadata field, separated by commas.

renderTagCloudSource

Arguments

:: Map String [FilePath]

A tag map as produced by readTagMap.

-> (String -> String)

Function that produces an url for a tag.

-> Float

Smallest font size, in percent.

-> Float

Biggest font size, in percent.

-> String

Result of the render.

Render a tag cloud.

renderTagLinksSource

Arguments

:: (String -> String)

Function that produces an url for a tag.

-> ContextManipulation