Module containing some specialized functions to deal with tags. This Module follows certain conventions. Stick with them.
- 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.
:: Map String [FilePath] | A tag map as produced by |
-> (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.
:: (String -> String) | Function that produces an url for a tag. |
-> ContextManipulation |