Skip to content

Commit 363751d

Browse files
committed
fix #408 hide location icon and row when location is empty or whitespace
1 parent 3fe80e9 commit 363751d

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/_includes/bio.njk

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@
2222
</div>
2323

2424
<div class="space-y-4 text-sm border-t border-[var(--border-color)] pt-6">
25-
{% if location %}
25+
{% if location | trim %}
2626
<div class="flex items-center gap-3">
2727
<span class="text-lg">📍</span>
28-
<span class="text-[var(--text-muted)]">
29-
{% if location and country %}{{ location }}, {{ country }}{% elif location %}{{ location }}{% endif %}
30-
</span>
28+
<span class="text-[var(--text-muted)]">{{ location | trim }}{% if country %}, {{ country }}{% endif %}</span>
3129
</div>
3230
{% endif %}
3331

0 commit comments

Comments
 (0)