You can write something like this:
import Data.List (isSuffixOf)
import Hakyll
cleanIndexUrls :: Item String -> Compiler (Item String)
cleanIndexUrls = return . fmap (withUrls clean)
where
idx = "index.html"
clean url
| idx `isSuffixOf` url = take (length url - length idx) url
| otherwise = url
And use it pretty much in the same way as `relativizeUrls`.
Hope this helps,
Peace,
Jasper
> --
> You received this message because you are subscribed to the Google Groups
> "hakyll" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
hakyll+un...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>