Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

Commit

Permalink
Implemented mmistakes' suggestions.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Robpol86 committed Oct 26, 2013
1 parent 2336f01 commit 2497004
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@
<!-- 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">

<!-- Background -->
{% if page.background %}
{% 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 %}
{% if page.image.background or site.background %}
<style type="text/css">body {background-image:url({{ site.url }}/images/{% if page.image.background %}{{ page.image.background }}{% else %}{{ site.background }}{% endif %});}</style>
{% endif %}
{% if page_bgimg %}<style type="text/css">body {background-image:url({{ page_bgimg }});}</style>{% endif %}

0 comments on commit 2497004

Please sign in to comment.