fediversity.eu/themes/hugoplate/layouts/partials/components/author-card.html

30 lines
866 B
HTML
Raw Permalink Normal View History

2024-03-26 16:28:28 +01:00
<div
2024-03-27 12:24:18 +01:00
class="bg-theme-light dark:bg-darkmode-theme-light rounded p-8 text-center"
>
{{ $image:= .Params.image }} {{ if $image }} {{ partial "image" (dict "Src"
$image "Alt" .Title "Class" "mx-auto mb-6 rounded" "size" "120x120") }} {{
else if .Params.Email }}
<img
class="mx-auto mb-6 rounded"
alt="{{ .Title }}"
height="120"
width="120"
src="https://www.gravatar.com/avatar/{{ md5 .Params.email }}?s=128&pg&d=identicon"
/>
2024-03-26 16:28:28 +01:00
{{ end }}
<h4 class="mb-3">
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h4>
2024-03-27 12:24:18 +01:00
<p class="mb-4">{{ .Summary }}</p>
2024-03-26 16:28:28 +01:00
<ul class="social-icons">
{{ range .Params.social }}
2024-03-27 12:24:18 +01:00
<li>
<a href="{{ .link | safeURL }}" target="_blank" rel="noopener nofollow">
<span class="sr-only">{{ .title }}</span>
<i class="{{ .icon }}"></i>
</a>
</li>
2024-03-26 16:28:28 +01:00
{{ end }}
</ul>
</div>