piranha/gostatic

Iterate over .Other.Field (or detecting .Other.Field as a list)

Opened this issue · 0 comments

As with tags, I want to do something like:

{{ range $i, $t := .Other.Related }}{{if $i}}, {{end}}<a href="/tags/{{ $t }}/">{{ $t }}</a>{{ end }} {{ end }}

with field Other.Related. Is it possible. I think that it implies to detect lists or strings. Perhaps this is related