all repos — vite @ c720289599cf73858c8150484d1b3fdafcaa5595

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

Docs and QoL fixes
Anirudh Oppiliappan x@icyphox.sh
Wed, 04 Nov 2020 11:27:17 +0530
commit

c720289599cf73858c8150484d1b3fdafcaa5595

parent

b64e5bd202d9b87397b0f4fd530110774ec5a324

2 files changed, 12 insertions(+), 4 deletions(-)

jump to
M build.gobuild.go

@@ -93,8 +93,10 @@ htmlFile.Close()

} func viteBuild() { - printMsg("executing pre-build actions...") - execute(cfg.Prebuild) + if cfg.Prebuild != "" { + printMsg("executing pre-build actions...") + execute(cfg.Prebuild) + } err := filepath.Walk("./pages", func(path string, info os.FileInfo, err error) error { if err != nil { printErr(err)

@@ -132,6 +134,8 @@ }

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

@@ -26,5 +26,9 @@ init PATH create vite project at PATH

build builds the current project new PATH create a new markdown post +NOTES + +vite generates Atom feeds for all documents under the `pages/blog/` +directory. [1]: https://github.com/icyphox/site