{{- $icon := dict "Class" "author fas fa-user-circle fa-fw" }} {{- if .Params.authors -}} {{- $lang := ( $.Params.lang | default $.Lang ) -}} {{- partial "plugin/icon.html" $icon -}} {{ i18n "by" }} {{- range $i, $name := .Params.authors -}} {{- if $.Site.Data.authors -}} {{- with partial "function/author.html" (dict "name" $name "author" (index $.Site.Data.authors $name) "lang" $lang ) -}} {{- if gt $i 0 }}, {{ end -}} {{- .name -}} {{- end -}} {{- else -}} {{- with partial "function/author.html" (dict "name" $name "lang" $lang ) -}} {{- if gt $i 0 }}, {{ end -}} {{- .name -}} {{- end -}} {{- end -}} {{- end -}} {{- else -}} {{- $author := .Params.author | default .Site.Author.name | default (T "author") -}} {{- $link := .Params.authorlink | default .Site.Author.link | default .Site.Home.RelPermalink -}} {{- $options := dict "Class" "author" "Destination" $link "Title" "Author" "Rel" "author" "Content" $author -}} {{- partial "plugin/icon.html" $icon -}} {{- partial "plugin/link.html" $options -}} {{- end -}}