Only replace blog posts if not there
							parent
							
								
									d9b6aed2b9
								
							
						
					
					
						commit
						4142b65a86
					
				| 
						 | 
					@ -126,9 +126,8 @@ allBlogPosts config = map f zippedDates
 | 
				
			||||||
 | 
					
 | 
				
			||||||
writeToFile :: Config -> (FilePath, Text) -> IO()
 | 
					writeToFile :: Config -> (FilePath, Text) -> IO()
 | 
				
			||||||
writeToFile config (fp, txt) = do
 | 
					writeToFile config (fp, txt) = do
 | 
				
			||||||
  -- fileExists <- doesFileExist fp'
 | 
					  fileExists <- doesFileExist fp'
 | 
				
			||||||
  -- unless fileExists (write fp' txt)
 | 
					  unless fileExists (write fp' txt)
 | 
				
			||||||
  write fp' txt
 | 
					 | 
				
			||||||
  where
 | 
					  where
 | 
				
			||||||
    write = TIO.writeFile
 | 
					    write = TIO.writeFile
 | 
				
			||||||
    fp'   = postsOutputPath config <> "/" <> fp
 | 
					    fp'   = postsOutputPath config <> "/" <> fp
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue