From 24970043deb37adabb10ec8deb2cb6df83bf5a4a Mon Sep 17 00:00:00 2001 From: Robpol86 Date: Sat, 26 Oct 2013 13:20:16 -0700 Subject: [PATCH] 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. --- _includes/head.html | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index 767c2dfd4f..915b5e3735 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -57,10 +57,6 @@ - -{% 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 %} + {% endif %} -{% if page_bgimg %}{% endif %}