Skip to content

Commit 3a3e294

Browse files
authored
Add country to profiles on index page (#456)
1 parent 2fcd9a1 commit 3a3e294

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/index.njk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ layout: false
2828
<h2 class="text-2xl font-bold group-hover:text-accent transition-colors">{{ person.data.name }}</h2>
2929
<p class="text-accent font-semibold text-sm uppercase tracking-wider">{{ person.data.role }}</p>
3030
</div>
31+
{% set country = person.data.country %}
3132
{% set location = person.data.location %}
32-
{% if location %}
33+
{% if location or country %}
3334
<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)]">
34-
{{ location }}
35+
{{ location }}{% if location and country %}, {% endif %}{{ country }}
3536
</span>
3637
{% endif %}
3738
</div>

0 commit comments

Comments
 (0)