Implemented mmistakes' suggestions.

All background images will now be consistent with the rest of the theme
and pull background images from the site's /images location.

Also moved per-page background yaml declaration into the images: "group"
or array thing (whatever it's called). This is also consistent with the
rest of the theme.
This commit is contained in:
Robpol86 2013-10-26 13:20:16 -07:00 committed by Michael Rose
parent 178d61ae37
commit 08fa20eeb4

View File

@ -57,10 +57,6 @@
<!-- 144x144 (precomposed) for iPad 3rd and 4th generation --> <!-- 144x144 (precomposed) for iPad 3rd and 4th generation -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.url }}/images/apple-touch-icon-144x144-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.url }}/images/apple-touch-icon-144x144-precomposed.png">
<!-- Background --> {% if page.image.background or site.background %}
{% if page.background %} <style type="text/css">body {background-image:url({{ site.url }}/images/{% if page.image.background %}{{ page.image.background }}{% else %}{{ site.background }}{% endif %});}</style>
{% capture page_bgimg %}{% if page.background contains 'http' %}{{ page.background }}{% else %}{{ site.url }}{{ page.background }}{% endif %}{% endcapture %}
{% elsif site.background %}
{% capture page_bgimg %}{% if site.background contains 'http' %}{{ site.background }}{% else %}{{ site.url }}{{ site.background }}{% endif %}{% endcapture %}
{% endif %} {% endif %}
{% if page_bgimg %}<style type="text/css">body {background-image:url({{ page_bgimg }});}</style>{% endif %}