Skip to content

put a " , " after every list item, but not the last one #1487

Answered by bobmitro
3muchfun asked this question in Help
Discussion options

You must be logged in to vote

@3muchfun Try this:

{{#if tags}}
   {{#each tags}}{{#checkIf @index '>' 0}}, {{/checkIf}}<a href="{{url}}">{{name}}</a>{{/each}}
{{/if}}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@3muchfun
Comment options

Comment options

You must be logged in to vote
1 reply
@3muchfun
Comment options

Answer selected by 3muchfun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants