Browse Source

fix: remove space after author names in MLA citation list (#1536)

This commit removes the space after the author names and before the period when using the MLA citation style.
George 5 years ago
parent
commit
4834058bfe
2 changed files with 4 additions and 4 deletions
  1. 2 2
      layouts/partials/li_citation.html
  2. 2 2
      layouts/partials/page_metadata_authors.html

+ 2 - 2
layouts/partials/li_citation.html

@@ -20,8 +20,8 @@
   {{ else }}
 
   <span class="article-metadata li-cite-author">
-    {{ partial "page_metadata_authors" . }}
-  </span>.
+    {{ partial "page_metadata_authors" . }}.
+  </span>
   <a href="{{ .RelPermalink }}">{{ .Title }}</a>.
   {{ if .Params.publication_short }}
   {{- .Params.publication_short | markdownify -}},

+ 2 - 2
layouts/partials/page_metadata_authors.html

@@ -1,6 +1,6 @@
 {{/* Display author list. */}}
 
-{{ $taxonomy := "authors" }}
+{{- $taxonomy := "authors" }}
 {{ with .Param $taxonomy }}
   {{ $link_authors := site.Params.link_authors | default true }}
   {{ range $index, $value := . }}
@@ -15,4 +15,4 @@
       {{- end -}}
     </span>
   {{- end -}}
-{{ end }}
+{{- end -}}