Skip to content

Commit e608a67

Browse files
committed
FIX #408 Hide location row when no location
1 parent c1b2913 commit e608a67

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/_includes/bio.njk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@
2222
</div>
2323

2424
<div class="space-y-4 text-sm border-t border-[var(--border-color)] pt-6">
25+
{% if location %}
2526
<div class="flex items-center gap-3">
2627
<span class="text-lg">📍</span>
27-
<span class="text-[var(--text-muted)]">{{ location }}{% if country %}, {{ country }}{% endif %}</span>
28+
<span class="text-[var(--text-muted)]">
29+
{% if location and country %}{{ location }}, {{ country }}{% elif location %}{{ location }}{% endif %}
30+
</span>
2831
</div>
32+
{% endif %}
2933

3034
{% if email %}
3135
<div class="flex items-center gap-3 group cursor-pointer" onclick="copyToClipboard('{{ email }}', this)">

src/index.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ layout: false
2929
<p class="text-accent font-semibold text-sm uppercase tracking-wider">{{ person.data.role }}</p>
3030
</div>
3131
{% set location = person.data.location %}
32-
{% if location %}
32+
{% if location and location | trim %}
3333
<span class="shrink-0 text-[10px] bg-[var(--bg-footer)] text-[var(--text-muted)] px-2 py-1 rounded font-bold uppercase border border-[var(--border-color)]">
3434
{{ location }}
3535
</span>

0 commit comments

Comments
 (0)