 -}}

    {{- if or (and (gt $len 2) (eq $index 1)) (and (gt $len 3) (eq $index 2)) -}}
    {{ template "contrib-name" (dict "site" $.Site "page" . )}}, {{ end -}}
  {{- end -}}

  {{- if gt $len 3 -}}
  et al
  {{- end -}}

{{- end -}}
{{- end -}}

{{- define "publication-contributors-chicago" -}}
  {{- $len := len (where $.Site.Data.publication.contributor "type" "primary") -}}
  {{- range $index, $element := (where $.Site.Data.publication.contributor "type" "primary") -}}
    {{- if gt $index 2 -}}
    {