Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

Commit

Permalink
Document new rake tasks for creating posts and pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mmistakes committed Feb 10, 2014
1 parent ccad0d8 commit f73bcfa
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion theme-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f73bcfa

Please sign in to comment.