diff --git a/_config.yml b/_config.yml index 9115d60..818f34f 100644 --- a/_config.yml +++ b/_config.yml @@ -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" diff --git a/css/main.css b/css/main.css index 709418d..32d21a0 100644 --- a/css/main.css +++ b/css/main.css @@ -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 { diff --git a/img/bgimage.png b/img/bgimage.png new file mode 100644 index 0000000..9e2d359 Binary files /dev/null and b/img/bgimage.png differ