Fix showing background img with non-empty baseurl (#497)
* Fix showing background img with non-empty baseurl Also switch globally to relative_url for all baseurl prepends, which is more robust than custom URL mangling * More site.baseurl -> relative_url conversion
This commit is contained in:
parent
a666a9db52
commit
7b43e4061d
12 changed files with 28 additions and 28 deletions
|
@ -13,7 +13,7 @@ body {
|
|||
position: relative;
|
||||
background-color: {{ site.page-col }};
|
||||
{% if site.page-img %}
|
||||
background-image: url({{ site.page-img }});
|
||||
background-image: url({{ site.page-img | relative_url }});
|
||||
background-attachment: fixed;
|
||||
{% endif %}
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ img {
|
|||
border-bottom: 1px solid #EAEAEA;
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
{% if site.navbar-img %}
|
||||
background-image: url({{ site.navbar-img }});
|
||||
background-image: url({{ site.navbar-img | relative_url }});
|
||||
background-attachment: fixed;
|
||||
{% endif %}
|
||||
}
|
||||
|
@ -267,7 +267,7 @@ footer {
|
|||
font-size: 14px;
|
||||
background-color: {{ site.footer-col }};
|
||||
{% if site.footer-img %}
|
||||
background-image: url({{ site.footer-img }});
|
||||
background-image: url({{ site.footer-img | relative_url }});
|
||||
background-attachment: fixed;
|
||||
{% endif %}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue