f and (eq $len 1) (eq $index 0) -}}
    {{ template "contrib-name-reverse-last" (dict "site" $.Site "page" . )}}
    {{- else if eq $index 0 -}}
    {{ template "contrib-name-reverse" (dict "site" $.Site "page" . )}}
    {{- else -}}
    {{- if eq $len 2 }}, and {{ template "contrib-name-last" (dict "site" $.Site "page" . )}}{{ end -}}
    {{- end -}}
  {{- end -}}
  {{- if gt $len 2 }}, et al{{ end -}}
{{- end -}}
{{- end -}}

{{- define "publication-contributors-mla" -}}
  {{- $len := len (where $.Site.Da