Only replace blog posts if not there
This commit is contained in:
parent
d9b6aed2b9
commit
4142b65a86
1 changed files with 2 additions and 3 deletions
|
|
@ -126,9 +126,8 @@ allBlogPosts config = map f zippedDates
|
|||
|
||||
writeToFile :: Config -> (FilePath, Text) -> IO()
|
||||
writeToFile config (fp, txt) = do
|
||||
-- fileExists <- doesFileExist fp'
|
||||
-- unless fileExists (write fp' txt)
|
||||
write fp' txt
|
||||
fileExists <- doesFileExist fp'
|
||||
unless fileExists (write fp' txt)
|
||||
where
|
||||
write = TIO.writeFile
|
||||
fp' = postsOutputPath config <> "/" <> fp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue