 replaceRE "[.]$" "" $nameLast }}
  {{- end -}}
{{- end -}}


{{- define "publishers-chicago" -}}
  {{ $len := len .site.Data.publication.publisher }}
  {{ range $index, $element := .site.Data.publication.publisher }}
    {{ if eq $index (sub $len 1) }}
    {{ .location }}: {{ .name }}{{ else }}
    {{ .location }}: {{ .name }}; {{ end }}
  {{- end }}
{{- end -}}

{{- define "publishers-mla" -}}
  {{ $len := len .site.Data.publication.publisher }}
  {{ range $index, $element := .site.Data.publication.publis