Getting Started
On this page
Install
With Homebrew:
brew install honmaple/tap/snow
With Go:
go install github.com/honmaple/snow@latest
Build from source:
git clone https://github.com/honmaple/snow --depth=1 cd snow go mod tidy go build .
Create a Site
snow init myblog
The setup prompts for the title, author, URL prefix, and whether to create an initial article:
$ snow init myblog Welcome to snow 0.1.7. > Where do you want to create your new web site? [.] myblog > What will be the title of this web site? [snow] > Who will be the author of this web site? honmaple > What is your URL prefix? (no trailing slash) [http://example.com] > Do you want to create first page? [Y/n]
The generated site includes:
myblog/ ├── config.yaml └── content/ └── posts/ └── hello-snow.md
Preview
cd myblog snow server --autoload
Or specify the site root without changing directories:
snow server --root-dir myblog --autoload
Build
snow build
A typical production build:
snow build --mode publish --clean
See CLI Usage for all commands and options.