{{- $annotation := index . 0 -}} {{- $label := "Annotation" -}} {{- if gt (len .) 1 -}} {{- if index . 1 -}} {{- $label = index . 1 -}} {{- end -}} {{- end -}}