Permalink
Browse files

Making the COVER_IMG_URL optional

  • Loading branch information...
andytom committed Nov 22, 2014
1 parent 65b9225 commit 4590c6648b6ff38db6d637470644e0d5e50ac77e
Showing with 6 additions and 2 deletions.
  1. +1 −1 README.md
  2. +5 −1 templates/base.html
View
@@ -6,7 +6,7 @@ Theme is responsive.
## PELICANCONF.PY
* `COVER_IMG_URL` - Set the sidebar image.
* `COVER_IMG_URL` - Set the sidebar image (Optional).
* `PROFILE_IMG_URL` - Set the image for the top circle cutout.
* `TAGLINE` - Used for the page titles and some meta tags.
* `FAVICON_URL` - Set the favicon image
View
@@ -38,7 +38,11 @@
<body>
<div class="pure-g-r" id="layout">
<div class="sidebar pure-u">
<div class="cover-img" style="background-image: url('{% block sidebar %}{{ COVER_IMG_URL }}{% endblock %}')">
<div class="cover-img" {% if COVER_IMG_URL -%}
style="background-image: url('{% block sidebar %}{{ COVER_IMG_URL }}{% endblock %}')"
{%- else -%}
style="background: none repeat scroll 0% 0% #3D4F5D"
{%- endif -%}>
<div class="cover-body">
<header class="header">
<hgroup>

0 comments on commit 4590c66

Please sign in to comment.