hakyll-0.4: A simple static site generator library.Source codeContentsIndex
Text.Hakyll.Tags
Description
Module containing some specialized functions to deal with tags. This Module follows certain conventions. Stick with them.
Synopsis
readTagMap :: [FilePath] -> IO (Map String [FilePath])
renderTagCloud :: Map String [FilePath] -> (String -> String) -> Float -> Float -> String
renderTagLinks :: (String -> String) -> ContextManipulation
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
:: Map String [FilePath]A tag map as produced by readTagMap.
-> String -> StringFunction that produces an url for a tag.
-> FloatSmallest font size, in percent.
-> FloatBiggest font size, in percent.
-> StringResult of the render.
Render a tag cloud.
renderTagLinksSource
:: String -> StringFunction that produces an url for a tag.
-> ContextManipulation
Produced by Haddock version 2.4.2