hakyll-3.0.1.0: A simple static site generator library.

Hakyll.Web.Util.Url

Description

Miscellaneous URL manipulation functions.

Synopsis

Documentation

toUrl :: FilePath -> StringSource

Convert a filepath to an URL starting from the site root

Example:

 toUrl "foo/bar.html"

Result:

 "/foo/bar.html"

toSiteRoot :: String -> StringSource

Get the relative url to the site root, for a given (absolute) url