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.
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
- CLI To run generating static contents based on the config file
- put all the code in one func
- create cmd to copy the template
- write tests
- Custom Error pages(404)
- HMR
- SEO stuffda