summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.