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

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