all repos — vite @ 8fb48f7b232232744deffbb72cfeac93cad0f32a

a fast (this time, actually) and minimal static site generator

Fix conditional
Anirudh Oppiliappan x@icyphox.sh
Tue, 10 Nov 2020 11:18:18 +0530
commit

8fb48f7b232232744deffbb72cfeac93cad0f32a

parent

2365b81c8e1c806ad04d7e791994a9c481340750

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M build.gobuild.go

@@ -93,7 +93,7 @@ htmlFile.Close()

} func viteBuild() { - if len(cfg.Prebuild) == 0 { + if len(cfg.Prebuild) != 0 { printMsg("executing pre-build actions...") execute(cfg.Prebuild) }

@@ -134,7 +134,7 @@ }

printMsg("site build complete") printMsg("generating feeds...") generateRSS(posts, cfg) - if len(cfg.Postbuild) == 0 { + if len(cfg.Postbuild) != 0 { printMsg("executing post-build actions...") execute(cfg.Postbuild) }