Skip to content

Commit

Permalink
Fix default front page background image
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikk Pristavka committed Dec 12, 2014
1 parent cc7a8a4 commit d84fbed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/edicy-tools-variables.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
{% endif %}

{% if page.data.cover_image_sizes == nil or page.data.cover_image_sizes == '' %}
{% if page.data.cover_image == nil or page.data.cover_image == '' %}
{% if cover_image == nil or cover_image == '' %}
{% assign cover_image_sizes = '' %}
{% else %}
{% assign cover_image_sizes = '[{"url": "' | append: page.data.cover_image | append: '", "width": 0, "height": 0}]' %}
{% assign cover_image_sizes = '[{"url": "' | append: cover_image | append: '", "width": 0, "height": 0}]' %}
{% endif %}
{% else %}
{% assign cover_image_sizes = page.data.cover_image_sizes | json %}
Expand Down

0 comments on commit d84fbed

Please sign in to comment.