Hello,
I recently imported my WordPress blog to Hugo. Still working on the details and on getting my theme over to Hugo.
How can I test a loop if I am in the last iteration?
Sample:
<div class="col-md-9 is--taglist">
<i class="icon-tags" aria-hidden="true"></i>
{{ with .Params.tags }}
{{ range . }}
<a href="{{ "tags" | absURL }}{{ . | urlize }}" rel="tag">{{ . }}</a>,
{{ end }}
{{ end }}
</div>
This would print a list of tags, separated by comma. How can I prevent a comma after the last tag? If that is a very simple thing in Go I would appreciate a nudge into the direction of the right documentation