sitepipe-0.4.0.2: A simple to understand static site generator
Safe HaskellNone
LanguageHaskell2010

SitePipe.Utilities

Synopsis

Documentation

addPrefix :: String -> FilePath -> FilePath Source #

Add a prefix to a filepath or url

setExt :: String -> FilePath -> FilePath Source #

Set the extension of a filepath or url to the given extension. Use setExt "" to remove any extension.

getTags Source #

Arguments

:: (String -> String)

Accept a tagname and create a url

-> [Value]

List of posts

-> [Value] 

Given a function which creates a url from a tag name and a list of posts (which have a tags property which is a list of strings) this returns a list of tags which contain:

  • name: The tag name
  • url: The tag's url
  • posts: The list of posts matching that tag