Skip to content

Commit

Permalink
Removed blog header-bar when title and description are empty (alshedi…
Browse files Browse the repository at this point in the history
  • Loading branch information
george-gca authored Apr 26, 2023
1 parent bb827fa commit 6f6ebcc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@

<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">
Expand Down

0 comments on commit 6f6ebcc

Please sign in to comment.