File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -4,21 +4,24 @@ <h1>{{ .Title }}</h1>
4
4
< span class ="text-faded "
5
5
> Posted on < time datetime ="{{ .Date.Format "2006-01-02 " }}"> {{ dateFormat ":date_long" .Date }}</ time > by
6
6
</ span >
7
- {{ range .Params.authors }}
8
- {{- if isset . "social" -}}
9
- < a href ="{{ .social }} "> {{ .name }}</ a >
7
+ {{ range $authorIndex, $author := .Params.authors -}}
8
+ {{ if ne $authorIndex 0 -}}
9
+ ,
10
+ {{ end -}}
11
+ {{- if isset $author "social" -}}
12
+ < a href ="{{ $author.social }} "> {{ $author.name }}</ a >
10
13
{{- else -}}
11
- < span > {{ .name }}</ span >
14
+ < span > {{ $author .name }}</ span >
12
15
{{- end -}}
13
- {{ if and (.links) (gt (len .links) 0) }}
16
+ {{- if and (.links) (gt (len .links) 0) }}
14
17
(
15
18
{{- range $index, $link := .links -}}
16
19
{{ if ne $index 0 -}}
17
20
,
18
21
{{ end -}}< a href ="{{ $link.link }} "> {{ $link.name }}</ a >
19
22
{{- end -}}
20
23
)
21
- {{ end }}
24
+ {{- end }}
22
25
{{- end -}}
23
26
24
27
{{- if .Draft -}}
You can’t perform that action at this time.
0 commit comments