if variable site.logo is null then hide logo

This commit is contained in:
Cédric TESNIERE 2014-01-21 00:02:43 +01:00
parent a01b3f1bc4
commit 6b560a843d

View file

@ -27,14 +27,18 @@
</div><!-- ./search-wrapper -->{% endif %} </div><!-- ./search-wrapper -->{% endif %}
{% if page.image.feature %}<header class="masthead"> {% if page.image.feature %}<header class="masthead">
<div class="wrap"> {% if site.logo != null %}
<a href="{{ site.url }}" class="site-logo" rel="home" title="{{ site.title }}"><img src="{{ site.url }}/images/{{ site.logo }}" width="200" height="200" alt="{{ site.title }} logo" class="animated bounceInDown"></a> <div class="wrap">
</div> <a href="{{ site.url }}" class="site-logo" rel="home" title="{{ site.title }}"><img src="{{ site.url }}/images/{{ site.logo }}" width="200" height="200" alt="{{ site.title }} logo" class="animated bounceInDown"></a>
</div>
{% endif %}
</header><!-- /.masthead --> </header><!-- /.masthead -->
{% else %}<header class="masthead"> {% else %}<header class="masthead">
<div class="wrap"> <div class="wrap">
<a href="{{ site.url }}" class="site-logo" rel="home" title="{{ site.title }}"><img src="{{ site.url }}/images/{{ site.logo }}" width="200" height="200" alt="{{ site.title }} logo" class="animated fadeInUp"></a> {% if site.logo != null %}
<h1 class="site-title animated fadeIn"><a href="{{ site.url }}">{{ site.title }}</a></h1> <a href="{{ site.url }}" class="site-logo" rel="home" title="{{ site.title }}"><img src="{{ site.url }}/images/{{ site.logo }}" width="200" height="200" alt="{{ site.title }} logo" class="animated fadeInUp"></a>
{% endif %}
<h1 class="site-title animated fadeIn"><a href="{{ site.url }}">{{ site.title }}</a></h1>
<h2 class="site-description animated fadeIn" itemprop="description">{{ site.description }}</h2> <h2 class="site-description animated fadeIn" itemprop="description">{{ site.description }}</h2>
</div> </div>
</header><!-- /.masthead -->{% endif %} </header><!-- /.masthead -->{% endif %}