blogin init
Scaffold a new site in a directory, with a starter post, layouts, and a
blogin.json. What it writes builds with nothing to fill in first.
blogin init [<dir>] [--framework none|bootstrap5|pico|bulma] [--force] [--verbose]
Arguments#
<dir>- the target directory. It defaults to the current directory.
Options#
-w,--framework <name>- the CSS framework to scaffold against:
none(the default),bootstrap5,pico, orbulma. The choice is recorded inblogin.jsonand wired into the scaffolded layouts. An unknown name is refused, listing the four that work. See CSS Frameworks. -f,--force- writes into a directory that is not empty.
-v,--verbose- names every file it writes.
Every option also has a one-letter spelling, listed on blogin build.
Example#
blogin init my-blog --framework bootstrap5
A flag takes the next argument, so write --framework bootstrap5 with a space.
--framework=bootstrap5 is an unknown flag and stops with an error saying so.