{%- assign authors=include.authors|split:"," -%} {%- for author in authors -%} {%- if author contains "<" -%} {%- assign authorparts=author|split:"<" -%} {{authorparts[0]|strip}} <"}}">{{authorparts[1]|remove:">"}}> {%- elsif author contains "(@" -%} {%- assign authorparts=author|split:"(@" -%} {{authorparts[0]|strip}} (@{{authorparts[1]|remove:")"}}) {%- else -%} {{author}} {%- endif -%} {% if forloop.last == false %}, {% endif %} {%- endfor -%}