ref: 5aa47a7b07a8dee27b4e474d9b1b96ae858644f2
parent: eff8457ac91e337b81876271aca31bf4d61e09f1
author: Ross Lawley <[email protected]>
date: Tue Aug 20 16:32:32 EDT 2013
Static changes shouldn't be destructive to existing files Currently changing css deletes all the site published html when it copies. Refs #46
--- a/main.go
+++ b/main.go
@@ -132,7 +132,7 @@
func copyStatic(config *hugolib.Config) error {
// Copy Static to Destination
- return fsync.SyncDel(config.GetAbsPath(config.PublishDir+"/"), config.GetAbsPath(config.StaticDir+"/"))
+ return fsync.Sync(config.GetAbsPath(config.PublishDir+"/"), config.GetAbsPath(config.StaticDir+"/"))
}
func serve(port string, config *hugolib.Config) {