Document background image feature

This commit is contained in:
Michael Rose
2013-10-26 20:07:11 -04:00
parent 21891d9b68
commit 96bce170a7
2 changed files with 14 additions and 0 deletions

View File

@ -165,6 +165,19 @@ links:
external: true
{% endhighlight %}
#### Background Images
To utilize this "feature" just add the following YAML to a post's front matter. ([View demo](http://mmistakes.github.io/hpstr-jekyll-theme/background-image/))
{% highlight yaml %}
image:
background: filename.png
{% endhighlight %}
This little bit of YAML makes the assumption that your background image asset is in the `/images` folder. If you place it somewhere else or are hotlinking from the web, just include the full http(s):// URL. Either way you should have a background image that is tiled.
If you want to set a background image for the entire site just add `background: filename.png` to your `_config.yml` and BOOM --- background images on every page!
#### Other Stuff
The rest is just your average Jekyll config settings. Nothing too crazy here...