blogin new

Create a new post file from a title, with front matter filled in and a slug derived from the title.

blogin new <title> [--src <dir>] [--section <name>] [--force] [--verbose]

Arguments#

<title>
the post title. The filename slug comes from it.

Options#

-s, --src <dir>
the content directory. It defaults to content.
-S, --section <name>
the section directory the post goes in. It defaults to the home-section from blogin.json.
-f, --force
writes over a post that already exists.
-v, --verbose
prints extra detail.

Every option also has a one-letter spelling, listed on blogin build.

Example#

blogin new "My First Post" --section posts

Flags are read wherever they appear, so blogin new --section posts "My First Post" is the same command.