Skip to content

Rake Automation

arkokoley edited this page Jan 2, 2013 · 2 revisions

Sani has a number of Rake commands that make working with it easier.

List of Rake commands:

npost

Usage: rake npost[my-new-post] or rake npost['my new post'] or rake npost (defaults to "new-post")

Working: Creates a post in the _posts directory with the current date, time and other necessary YAML matter.

npage

Usage: rake npage[my-new-page] or rake npage[my-new-page.html] or rake npage (defaults to "new-page.markdown")

Working: Creates a new directory with a page in it with YAML.

For eg. rake npage[my-new-page] creates a page my-new-page/index.md| rake npage[my-new-page.html] creates a page my-new-page/index.html

Other tasks:

Clone this wiki locally