diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2009-12-12 15:47:51 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2009-12-12 15:47:51 +0100 |
commit | 30deeb343509b91eaade13de90528bd5bcc40158 (patch) | |
tree | 581dc2cb666942ef6ccf1c642866cbbedf25ca83 /src | |
parent | 0638efe151af64c0cac48368d168916927685f0a (diff) | |
download | hakyll-30deeb343509b91eaade13de90528bd5bcc40158.tar.gz |
Static files now also make use of cache.
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Hakyll/Render.hs | 5 |
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. |