summaryrefslogtreecommitdiff
path: root/src/Hakyll/Web
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2012-11-28 10:24:09 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2012-11-28 10:26:23 +0100
commit2caa185504ec697b96b7bf28dd9d15d489777abf (patch)
treeeb31db743b9d850bd1c0566754cbebdb4521dba0 /src/Hakyll/Web
parentdb45ea9d8cb8fd199de2239b6bc28aff3ad53cce (diff)
downloadhakyll-2caa185504ec697b96b7bf28dd9d15d489777abf.tar.gz
Minimize <img>, patch by Chris Mears
Conflicts: tests/Hakyll/Web/Urls/Relativize/Tests.hs
Diffstat (limited to 'src/Hakyll/Web')
-rw-r--r--src/Hakyll/Web/Urls.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Hakyll/Web/Urls.hs b/src/Hakyll/Web/Urls.hs
index e89bd08..1cd0816 100644
--- a/src/Hakyll/Web/Urls.hs
+++ b/src/Hakyll/Web/Urls.hs
@@ -29,7 +29,8 @@ withUrls f = renderTags' . map tag . TS.parseTags
--
renderTags' :: [TS.Tag String] -> String
renderTags' = TS.renderTagsOptions TS.renderOptions
- { TS.optRawTag = (`elem` ["script", "style"]) . map toLower
+ { TS.optRawTag = (`elem` ["script", "style"]) . map toLower
+ , TS.optMinimize = (`elem` ["br", "img"])
}
-- | Convert a filepath to an URL starting from the site root