:: FilePath -> String package:hakyll

Convert a filepath to an URL starting from the site root Example:
toUrl "foo/bar.html"
Result:
"/foo/bar.html"
This also sanitizes the URL, e.g. converting spaces into '%20'