on master help sign in
Static files now also make use of cache.
commit30deeb343509b91eaade13de90528bd5bcc40158 authorJasper Van der Jeugt <jaspervdj@gmail.com> dateSat 12 Dec 2009, 15:47 (17 years ago) parent0638efe
1 file changed+2−3
src/Text/Hakyll/Render.hs+2−3
src/Text/Hakyll/Render.hs+2−3
@@ -72,9 +72,8 @@ renderChain templates renderable =
7272-- | Mark a certain file as static, so it will just be copied when the site is
7373-- generated.
7474static :: FilePath -> IO ()
75−static source = do
76− makeDirectories destination
77− copyFile source destination
75+static source = depends destination [source]
76+ (makeDirectories destination >> copyFile source destination)
7877 where destination = toDestination source
7978
8079-- | Mark a whole directory as static.