Hubro is not a static site generator, and not a traditional database backed blog engine either. It reads markdown files from a blog directory and renders them to HTML using Go templates. It also reads markdown files from a pages directory and renders them to HTML. The pages directory is for static pages, like an about page or a contact page. Everything is read into memory at startup, and updated if the files change.
scripts/setup.sh will install TailwindCSS and ESBuild.
Install Air:
go install github.com/air-verse/air@latest
air
go run cli/main.go [number of posts]
This will put random markdown files in the blog directory.
docker build -t hubro .
docker run -e HUBRO_TITLE=ugle-z.no -e HUBRO_DESCRIPTION="Random ramblings" -v ./blog:/app/blog -v ./pages:/app/pages -p 8888:8080 -it hubro