Skip to content

Commit 2a9b89d

Browse files
authored
Removed blog header-bar when title and description are empty (alshedivat#1370)
When blog title and description are empty, go from this ![image](https://user-images.githubusercontent.com/31376482/234630799-f4c2cd46-7ad0-4d45-a0f6-2badcf0da558.png) to this ![image](https://user-images.githubusercontent.com/31376482/234630683-f11c8a88-438a-4db3-974e-ba9184d5516f.png) Signed-off-by: George Araujo <george.gcac@gmail.com>
1 parent 4703651 commit 2a9b89d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

blog/index.html

+5
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@
1515

1616
<div class="post">
1717

18+
{% assign blog_name_size = site.blog_name | size %}
19+
{% assign blog_description_size = site.blog_description | size %}
20+
21+
{% if blog_name_size > 0 or blog_description_size > 0 %}
1822
<div class="header-bar">
1923
<h1>{{ site.blog_name }}</h1>
2024
<h2>{{ site.blog_description }}</h2>
2125
</div>
26+
{% endif %}
2227

2328
{% if site.display_tags %}
2429
<div class="tag-list">

0 commit comments

Comments
 (0)