summaryrefslogtreecommitdiff
path: root/src/Text/Hakyll
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2009-12-12 15:47:51 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2009-12-12 15:47:51 +0100
commit30deeb343509b91eaade13de90528bd5bcc40158 (patch)
tree581dc2cb666942ef6ccf1c642866cbbedf25ca83 /src/Text/Hakyll
parent0638efe151af64c0cac48368d168916927685f0a (diff)
downloadhakyll-30deeb343509b91eaade13de90528bd5bcc40158.tar.gz
Static files now also make use of cache.
Diffstat (limited to 'src/Text/Hakyll')
-rw-r--r--src/Text/Hakyll/Render.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Text/Hakyll/Render.hs b/src/Text/Hakyll/Render.hs
index 55c6c75..daca5b1 100644
--- a/src/Text/Hakyll/Render.hs
+++ b/src/Text/Hakyll/Render.hs
@@ -72,9 +72,8 @@ renderChain templates renderable =
-- | Mark a certain file as static, so it will just be copied when the site is
-- generated.
static :: FilePath -> IO ()
-static source = do
- makeDirectories destination
- copyFile source destination
+static source = depends destination [source]
+ (makeDirectories destination >> copyFile source destination)
where destination = toDestination source
-- | Mark a whole directory as static.