hakyll 3.0.1.3 → 3.0.1.4
raw patch · 2 files changed
+5/−3 lines, 2 files
Files
- hakyll.cabal +1/−1
- src/Hakyll/Web/Util/Url.hs +4/−2
hakyll.cabal view
@@ -1,5 +1,5 @@ Name: hakyll-Version: 3.0.1.3+Version: 3.0.1.4 Synopsis: A simple static site generator library. Description: A simple static site generator library, mainly aimed at
src/Hakyll/Web/Util/Url.hs view
@@ -25,9 +25,11 @@ -- toSiteRoot :: String -> String toSiteRoot = emptyException . joinPath . map parent- . splitPath . takeDirectory . dropLeadingSlash+ . filter relevant . splitPath . takeDirectory where parent = const ".." emptyException [] = "." emptyException x = x- dropLeadingSlash = dropWhile (== '/')+ relevant "." = False+ relevant "/" = False+ relevant _ = True