From 30deeb343509b91eaade13de90528bd5bcc40158 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Sat, 12 Dec 2009 15:47:51 +0100 Subject: Static files now also make use of cache. --- src/Text/Hakyll/Render.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/Text/Hakyll') 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. -- cgit v1.2.3