mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Static changes shouldn't be destructive to existing files
Currently changing css deletes all the site published html when it copies. Refs #46
This commit is contained in:
parent
eff8457ac9
commit
5aa47a7b07
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -132,7 +132,7 @@ func main() {
|
|||
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue