diff --git a/.nanpa/symlink.kdl b/.nanpa/symlink.kdl index 7ed126f..46097c6 100644 --- a/.nanpa/symlink.kdl +++ b/.nanpa/symlink.kdl @@ -1 +1,2 @@ patch type="fixed" "symlink html directory" +patch type="fixed" "remove stray unpublishes from html dir" diff --git a/ttbp/ttbp.go b/ttbp/ttbp.go index 0743eca..6753d93 100644 --- a/ttbp/ttbp.go +++ b/ttbp/ttbp.go @@ -398,6 +398,7 @@ func Publish() { return // TODO: expose this error to the user } if cfg.Publishing { + os.RemoveAll(PathUserWWW) // remove all post and start over if _, err := os.Stat(PathUserWWW); os.IsNotExist(err) { os.MkdirAll(PathUserWWW, 0700) os.Symlink(path.Join(PathUserConfig, "style.css"), path.Join(PathUserWWW, "style.css"))