hakyll 3.0.1.1 → 3.0.1.2
raw patch · 3 files changed
+4/−3 lines, 3 files
Files
- hakyll.cabal +1/−1
- src/Hakyll/Web/Tags.hs +1/−1
- src/Hakyll/Web/Util/Url.hs +2/−1
hakyll.cabal view
@@ -1,5 +1,5 @@ Name: hakyll-Version: 3.0.1.1+Version: 3.0.1.2 Synopsis: A simple static site generator library. Description: A simple static site generator library, mainly aimed at
src/Hakyll/Web/Tags.hs view
@@ -138,7 +138,7 @@ -- Create a link for one item makeLink ((tag, url), count) = H.a ! A.style (toValue $ "font-size: " ++ size count)- ! A.href (toValue $ fromMaybe "/" url)+ ! A.href (toValue $ toUrl $ fromMaybe "/" url) $ toHtml tag -- Render and return the HTML
src/Hakyll/Web/Util/Url.hs view
@@ -18,7 +18,8 @@ -- > "/foo/bar.html" -- toUrl :: FilePath -> String-toUrl = ('/' :)+toUrl ('/' : xs) = '/' : xs+toUrl url = '/' : url -- | Get the relative url to the site root, for a given (absolute) url --