e.id -}}
    {{- range where .site.Data.publication.contributor "id" .page.id -}}
      {{ template "name-string-reverse-last" . }}
    {{- end -}}
  {{- else -}}
    {{ template "name-string-reverse-last" .page }}
  {{- end -}}
{{- end -}}

{{- define "contrib-name-last" -}}
  {{- if .page.id -}}
    {{- range where .site.Data.publication.contributor "id" .page.id -}}
      {{ template "name-string-last" . }}
    {{- end -}}
  {{- else -}}
    {{ template "name-string-last" .page }}
  {{- end -}}
{{- end -