What this is
Yet another SSG in Go. It's not intended to replace any existing SSGs. I created it as a learning exercise and really enjoyed the process.π€
Heavily inspired by this blog post(Writing a Static Blog Generator in Go) by @zupzup.
In case you are wondering how to use this, check out the Initialization process below.
Initialization
Install the cli.
go install github.com/K-Sato1995/go-simple-ssg/simple-ssg-cli@latest
run
simple-ssg-cli init
would create a new project that looks somethi ng like this.
./
βββ contents/ (Stores markdown files)
βββ templates/ (Stores template html files and style files)
βββ generated/ (Stores generated files)
βββ go.mod
βββ go.sum
βββ main.go
cd your project
and just run
go run main.go
You should be able to see the site running on http://localhost:3001
Todo
-
CLI To run generating static contents based on the config file
- put all the code in oneβ¦