13 lines
No EOL
483 B
HTML
13 lines
No EOL
483 B
HTML
{{- $author := or .Params.author .Site.Params.author }}
|
|
{{- /* normalize [params.author] to [[params.author]] */}}
|
|
{{- if reflect.IsMap $author }}
|
|
{{- $author = slice ($author) }}
|
|
{{- end }}
|
|
{{- with $author }}
|
|
<p class="article-authors-hint">Article authored by:</p>
|
|
<ul class="article-authors" data-authors-count="{{len .}}">
|
|
{{- range . }}
|
|
<li class="article-author">{{- partial "components/author-card.html" . }}</li>
|
|
{{- end }}
|
|
</ul>
|
|
{{ end -}}{{/* end with author h-card */ -}} |