diff --git a/_posts/2013-10-26-background-image.md b/_posts/2013-10-26-background-image.md new file mode 100644 index 0000000..812d8a9 --- /dev/null +++ b/_posts/2013-10-26-background-image.md @@ -0,0 +1,23 @@ +--- +layout: post +title: Post with a Background Image +description: "Sample post with a background image CSS override." +tags: [sample post] +image: + background: triangular.png +comments: true +share: true +--- + +Here be a sample post with a custom background image. To utilize this "feature" just add the following YAML to a post's front matter. + +{% 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! + +
Background images from Subtle Patterns (Subtle Patterns) / CC BY-SA 3.0
\ No newline at end of file diff --git a/images/ps_neutral.png b/images/ps_neutral.png new file mode 100644 index 0000000..c3a53ac Binary files /dev/null and b/images/ps_neutral.png differ diff --git a/images/triangular.png b/images/triangular.png new file mode 100644 index 0000000..7f41795 Binary files /dev/null and b/images/triangular.png differ diff --git a/images/witewall_3.png b/images/witewall_3.png new file mode 100644 index 0000000..684447f Binary files /dev/null and b/images/witewall_3.png differ