Skip to content

Commit ef98585

Browse files
authored
Trim bio on index page before truncating (#462)
1 parent 648f8df commit ef98585

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ layout: false
4646

4747
{% set bio = person.data.bio %}
4848
{% if bio %}
49-
<p class="mt-4 text-[var(--text-muted)] text-sm italic line-clamp-3">"{{ bio | truncate(120) }}"</p>
49+
<p class="mt-4 text-[var(--text-muted)] text-sm italic line-clamp-3">"{{ bio | trim | truncate(120) }}"</p>
5050
{% endif %}
5151
</div>
5252

0 commit comments

Comments
 (0)