From f73bcfa7b13c7ad8d26f0c1fd3fd269816b79608 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Mon, 10 Feb 2014 15:51:03 -0500 Subject: [PATCH] Document new rake tasks for creating posts and pages --- theme-setup.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/theme-setup.md b/theme-setup.md index 4b8227e..9ff3f2e 100644 --- a/theme-setup.md +++ b/theme-setup.md @@ -191,7 +191,19 @@ For the most part you can leave these as is since the author/owner details are p ### Adding Posts and Pages -There are two main content layouts: `post.html` (for posts) and `page.html` (for pages). Both have support for large **feature images** that span the full-width of the screen, and both are meant for text heavy blog posts (or articles). +There are two main content layouts: `post.html` (for posts) and `page.html` (for pages). Both have support for large **feature images** that span the full-width of the screen, and both are meant for text heavy blog posts (or articles). + +There are two rake tasks that can be used to create a new post or page with all YAML Front Matter. Using either `rake new_post` or `rake new_page` will prompt you for a title and tags to classify them. Example below: + +{% highlight %} +rake new_post + +Enter a title for your post: My Awesome Post +Enter tags to classify your post (comma separated): web development, code +Creating new post: _posts/2014-02-10-my-awesome-post.md +{% endhighlight %} + +There are a few configuration variables that can be changed in `Rakefile.rb`. By default posts and pages will be created in MarkDown using the `.md` extension. #### Feature Images