Skip to content

Commit 4f48eac

Browse files
committed
chore: improve sidebar images with the new list of authors
Signed-off-by: Jonathan Gonzalez V. <[email protected]>
1 parent b5ee1d9 commit 4f48eac

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

content/blog/summarizing-ying-zhu-lfx-mentorship/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ draft: false
55
image:
66
url: patch.png
77
attribution:
8-
author: fdrees
8+
authors:
9+
- fdrees
910
tags:
1011
- mentorship
1112
- lfx
Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
{{ $author := $.Site.GetPage (path.Join "authors" .Params.author)}}
2-
<div class="my-auto">
3-
<img src="{{ $author.RelPermalink }}/{{ $author.Params.avatar }}" class="w-10 h-10 rounded-full"
4-
alt="{{$author.Params.name}}">
1+
{{ with .GetTerms "authors" }}
2+
<div class="flex gap-3">
3+
{{ range . }}
4+
<div class="my-auto">
5+
<img src="{{ .RelPermalink }}/{{ .Params.avatar }}" class="w-10 h-10 rounded-full"
6+
alt="{{.LinkTitle}}">
7+
</div>
8+
{{ end }}
59
</div>
6-
<div class="my-auto">
7-
<div>
8-
<h1 class="text-lg charcoal font-bold">
9-
{{$author.Params.name}}
10-
</h1>
11-
</div>
12-
</div>
10+
{{ end }}

0 commit comments

Comments
 (0)