Hi there i added on footer section a list of policies (shop.policies) with an output like:
Privacy Policy Terms of service
Then i added append filter append on array, like:
{{ policy.title | append: ' /' }}
with an output:
Privacy Policy / Terms of service /
How can i remove the last ' /' on that string?
Thanks in advance community
EDITED:
added part of code where it is needed.
<ul class="list list-policies">
{%- for policy in shop.policies %}
<a
href="{{ policy.url }}"
rel="noopener noreferrer"
class="text-xs tracking-tighter uppercase font-bold"
title="{{ policy.title }}"
>
{{ policy.title | append: ' /' | remove_last: '/' }}
</a>
{%- endfor %}
</ul>