parent
5a7db89b47
commit
462d18850e
|
@ -1 +1,2 @@
|
||||||
patch type="fixed" "symlink html directory"
|
patch type="fixed" "symlink html directory"
|
||||||
|
patch type="fixed" "remove stray unpublishes from html dir"
|
||||||
|
|
|
@ -398,6 +398,7 @@ func Publish() {
|
||||||
return // TODO: expose this error to the user
|
return // TODO: expose this error to the user
|
||||||
}
|
}
|
||||||
if cfg.Publishing {
|
if cfg.Publishing {
|
||||||
|
os.RemoveAll(PathUserWWW) // remove all post and start over
|
||||||
if _, err := os.Stat(PathUserWWW); os.IsNotExist(err) {
|
if _, err := os.Stat(PathUserWWW); os.IsNotExist(err) {
|
||||||
os.MkdirAll(PathUserWWW, 0700)
|
os.MkdirAll(PathUserWWW, 0700)
|
||||||
os.Symlink(path.Join(PathUserConfig, "style.css"), path.Join(PathUserWWW, "style.css"))
|
os.Symlink(path.Join(PathUserConfig, "style.css"), path.Join(PathUserWWW, "style.css"))
|
||||||
|
|
Loading…
Reference in New Issue