diff --git a/layouts/post/list.html b/layouts/post/list.html index d921f4d..20751aa 100644 --- a/layouts/post/list.html +++ b/layouts/post/list.html @@ -15,12 +15,12 @@ {{ $s.Set "len" (len .Params.authors) }} {{ $s.Add "len" -1 }} {{ range $idx, $author := .Params.authors -}} - + {{ path.BaseName $author }} {{ if ne $idx ($s.Get "len") }}, {{end}} {{- end }} {{ else }} - + {{ path.BaseName (.Params.author | default .Site.Params.author) }} {{ end }} diff --git a/layouts/post/single.html b/layouts/post/single.html index ce38fd6..886ef0d 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -18,12 +18,12 @@ {{ $s.Set "len" (len .Params.authors) }} {{ $s.Add "len" -1 }} {{ range $idx, $author := .Params.authors -}} - + {{ path.BaseName $author }} {{ if ne $idx ($s.Get "len") }}, {{end}} {{- end }} {{ else }} - + {{ path.BaseName (.Params.author | default .Site.Params.author) }} {{ end }}