We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fcd9a1 commit 3a3e294Copy full SHA for 3a3e294
1 file changed
src/index.njk
@@ -28,10 +28,11 @@ layout: false
28
<h2 class="text-2xl font-bold group-hover:text-accent transition-colors">{{ person.data.name }}</h2>
29
<p class="text-accent font-semibold text-sm uppercase tracking-wider">{{ person.data.role }}</p>
30
</div>
31
+ {% set country = person.data.country %}
32
{% set location = person.data.location %}
- {% if location %}
33
+ {% if location or country %}
34
<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)]">
- {{ location }}
35
+ {{ location }}{% if location and country %}, {% endif %}{{ country }}
36
</span>
37
{% endif %}
38
0 commit comments