diff --git a/layouts/post/list.html b/layouts/post/list.html index 3f25ed1..d921f4d 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 31ccf77..ce38fd6 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 }}