adds background pattern (#242)

* adds YAML section bg image

* adds bgimage

* adds bgimage config

* fixes layout for processed css file
This commit is contained in:
OCram85 2017-09-04 20:46:36 +02:00 committed by Dean Attali
parent fcbfbe6a13
commit 4b39f58891
3 changed files with 16 additions and 0 deletions

View File

@ -7,6 +7,10 @@
url: "http://username.github.io"
baseurl: ""
# If you want a background image you can add it here.
bgimage: "/img/bgimage.png"
# If you are building a GitHub project page then use these settings:
#url: "http://username.github.io/projectname"
#baseurl: "/projectname"

View File

@ -1,3 +1,7 @@
---
layout: null
---
@import url("pygment_highlights.css");
/* --- General --- */
@ -100,6 +104,10 @@ img {
background: #F5F5F5;
border-bottom: 1px solid #EAEAEA;
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
{% if site.bgimage %}
background-image: url({{ site.bgimage }});
background-attachment: fixed;
{% endif %}
}
.navbar-custom .nav li a {
@ -261,6 +269,10 @@ footer {
border-top: 1px #EAEAEA solid;
margin-top: 50px;
font-size: 14px;
{% if site.bgimage %}
background-image: url({{ site.bgimage }});
background-attachment: fixed;
{% endif %}
}
footer a {

BIN
img/bgimage.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB