mirror of
https://github.com/MinimalBible/MinimalBible.github.io
synced 2024-12-21 22:28:17 -05:00
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:
parent
2336f01085
commit
24970043de
@ -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 %}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user