Fix conditional
Anirudh Oppiliappan x@icyphox.sh
Tue, 10 Nov 2020 11:18:18 +0530
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
build.go
→
build.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) }