2022-11-03 14:24:43 -07:00

17 lines
855 B
HTML

<span class="flex items-center">
{{ range $id := $.authors }}
{{ $authorPage := $.context.Site.GetPage (printf "/authors/%s" ($id | urlize)) }}
{{ $authorData := index $.context.Site.Data.team.team $id }}
<span class="flex items-center">
{{ if $authorData }}
<a data-track="{{ $authorData.name | urlize }}-img" class="rounded-full p-1 bg-blue-200 mr-2" href="{{ $authorPage.RelPermalink }}">
<img class="w-8 rounded-full" src="/images/team/{{ $authorData.id }}.jpg" alt="{{ $authorData.name }}" title="{{ $authorData.name }}" />
</a>
<a data-track="{{ $authorData.name | urlize }}-name" class="mr-2 hover:text-gray-800" href="{{ $authorPage.RelPermalink }}">{{ $authorData.name }}</a>
{{ end }}
</span>
{{ end }}
</span>