From: Lucian Mogosanu Date: Thu, 25 Jul 2013 09:33:52 +0000 (+0300) Subject: site: compile images X-Git-Tag: v0.1~2^2~5 X-Git-Url: https://git.mogosanu.ro/?a=commitdiff_plain;h=02ce9865a059428a2b97f40e77f21beafe554c4c;p=thetarpit.git site: compile images --- diff --git a/site.hs b/site.hs index 0aeb143..0f9a4b6 100644 --- a/site.hs +++ b/site.hs @@ -15,6 +15,7 @@ main = hakyllWith tarpitConfiguration $ do match "index.html" compileIndex match "css/*" compileCss match "posts/*" $ compilePosts tags + match "images/*" $ compileImages match (fromList pages) compilePages create ["archive.html"] compileArchive @@ -57,6 +58,11 @@ compilePosts tags = do >>= loadAndApplyTemplate "templates/default.html" ctx >>= relativizeUrls +compileImages :: Rules () +compileImages = do + route idRoute + compile copyFileCompiler + compilePages :: Rules () compilePages = do route $ setExtension "html"