{#
Each entry is `label|url`. Crinja rejects bracket indexing on a
parenthesized filter expression, and `set` inside a `for` does not
survive an inner `if` boundary, so `first` / `last` pull the two ends
without naming intermediate variables.
#}
{% for link in links | split(pat=",") %}
{{ link | trim | split(pat="|") | first | trim }}
{% endfor %}