# Image Backgrounds

<backgroundimage>https://farm4.staticflickr.com/3743/11167478016_1714b57b28_b.jpg</backgroundimage>
<backgroundimageopacity>0.25</backgroundimageopacity>

You can also set image backgrounds.

&lt;backgroundimage&gt;
&#123;&#123;site.github.url&#125;&#125;/images/image.jpg
&lt;/backgroundimage&gt;
&lt;backgroundimageopacity&gt;0.25&lt;/backgroundimageopacity&gt;

<small><a href="https://www.flickr.com/photos/31518985@N04/11167478016">"Light through autumn leaves, Alice Holt Forest, Surrey, UK"</a> by <a href="https://www.flickr.com/photos/31518985@N04">ambabheg</a> is licensed under <a href="https://creativecommons.org/licenses/by/2.0"> CC BY 2.0 </a></small>
# Image Backgrounds

<backgroundimage>https://farm4.staticflickr.com/3743/11167478016_1714b57b28_b.jpg</backgroundimage>
<backgroundimageopacity>0.25</backgroundimageopacity>

You can also set image backgrounds.

&lt;backgroundimage&gt;
&#123;&#123; '/images/image.jpg' | relative_url &#125;&#125;/
&lt;/backgroundimage&gt;
&lt;backgroundimageopacity&gt;0.25&lt;/backgroundimageopacity&gt;

<small><a href="https://www.flickr.com/photos/31518985@N04/11167478016">"Light through autumn leaves, Alice Holt Forest, Surrey, UK"</a> by <a href="https://www.flickr.com/photos/31518985@N04">ambabheg</a> is licensed under <a href="https://creativecommons.org/licenses/by/2.0"> CC BY 2.0 </a></small>
Make sample background image code more compatible
Make sample background image code more compatible

As per the below, relative_url can now be used to build safe URLs which
work locally and when published.

https://jekyllrb.com/news/#3-siteurl-is-set-by-the-development-server
