{{ $list := .AlternativeOutputFormats -}} {{ $length := (len $list) -}} {{ if $list -}}

Subscribe{{ with .Section }} to {{ . }}{{ end }}: {{ range $index, $element := $list -}} {{ .Name }}{{ if ne (add $index 1) $length }} | {{ end }} {{- end -}}

{{ end -}}