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 and wangmagg committed May 14, 2024
1 parent 3ff9e20 commit 781e7a3
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 781e7a3

Please sign in to comment.