mirror of
https://github.com/MinimalBible/MinimalBible.github.io
synced 2025-01-24 06:40:15 -05:00
Document new rake tasks for creating posts and pages
This commit is contained in:
parent
ccad0d8c0f
commit
f73bcfa7b1
@ -193,6 +193,18 @@ For the most part you can leave these as is since the author/owner details are p
|
||||
|
||||
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
|
||||
|
||||
A good rule of thumb is to keep feature images nice and wide so you don't push the body text too far down. An image cropped around around 1024 x 256 pixels will keep file size down with an acceptable resolution for most devices. If you want to serve these images responsively I'd suggest looking at the [Jekyll Picture Tag](https://github.com/scottjehl/picturefill)[^2] plugin.
|
||||
|
Loading…
Reference in New Issue
Block a user