trwnh.com/unified.test.hugo/layouts/partials/components/feed-authors.html

13 lines
471 B
HTML
Raw Normal View History

2024-11-13 17:24:48 +00:00
{{- $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="feed-authors-hint">Feed authored by:</p>
<ul class="feed-authors" data-authors-count="{{len .}}">
{{- range . }}
<li class="feed-author">{{- partial "components/author-card.html" . }}</li>
{{- end }}
</ul>
{{ end -}}{{/* end with author h-card */ -}}