mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 09:32:27 +00:00
21 lines
586 B
HTML
21 lines
586 B
HTML
{{- with .Params.authors -}}
|
|
|
|
{{- $lang := ( $.Params.lang | default $.Lang ) -}}
|
|
|
|
<span class='byline'>
|
|
{{- partial "svg/icon" "author" -}}
|
|
<span class='screen-reader-text'> {{ i18n "by" }} </span>
|
|
|
|
{{- range $i, $authorID := . -}}
|
|
{{- $author := ( index $.Site.Data.authors $authorID ) -}}
|
|
{{- $i18nAuthor := ( index $author $lang ) -}}
|
|
{{- $name := ( or $i18nAuthor.name $author.name ) -}}
|
|
{{- if gt $i 0 }}, {{ end -}}
|
|
<a href='{{ ( print "authors" "/" $author.id ) | relLangURL }}'>
|
|
{{- $name.display -}}
|
|
</a>
|
|
{{- end -}}
|
|
</span>
|
|
|
|
{{- end -}}
|