Removed blog header-bar when title and description are empty (#1370)
When blog title and description are empty, go from this  to this  Signed-off-by: George Araujo <george.gcac@gmail.com>
This commit is contained in:
parent
470365139e
commit
2a9b89d352
|
|
@ -15,10 +15,15 @@ pagination:
|
|||
|
||||
<div class="post">
|
||||
|
||||
{% assign blog_name_size = site.blog_name | size %}
|
||||
{% assign blog_description_size = site.blog_description | size %}
|
||||
|
||||
{% if blog_name_size > 0 or blog_description_size > 0 %}
|
||||
<div class="header-bar">
|
||||
<h1>{{ site.blog_name }}</h1>
|
||||
<h2>{{ site.blog_description }}</h2>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if site.display_tags %}
|
||||
<div class="tag-list">
|
||||
|
|
|
|||
Loading…
Reference in New Issue