projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eff8457
)
Static changes shouldn't be destructive to existing files
author
Ross Lawley
<ross.lawley@gmail.com>
Tue, 20 Aug 2013 19:32:32 +0000
(20:32 +0100)
committer
Ross Lawley
<ross.lawley@gmail.com>
Tue, 20 Aug 2013 19:32:32 +0000
(20:32 +0100)
Currently changing css deletes all the site published html when it copies.
Refs #46
main.go
patch
|
blob
|
history
diff --git
a/main.go
b/main.go
index 26cd1d7f7c0471d1ec3d4b382c3672b828273670..8ff08f7fce566ea41f6b5c2ca152bf3567916771 100644
(file)
--- a/
main.go
+++ b/
main.go
@@
-132,7
+132,7
@@
func main() {
func copyStatic(config *hugolib.Config) error {
// Copy Static to Destination
- return fsync.Sync
Del
(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) {