2026-04-08 19:49:15 +02:00
|
|
|
{{- /* Inline author byline for post single pages.
|
2026-05-08 13:18:05 +02:00
|
|
|
Expects the author page as context (.).
|
|
|
|
|
*/
|
|
|
|
|
-}}
|
2026-04-11 17:36:20 +02:00
|
|
|
<div class="flex items-center gap-4 py-6 border-t border-b border-zinc my-8 max-w-2xl">
|
2026-04-08 19:49:15 +02:00
|
|
|
{{- $avatarRes := .Resources.GetMatch "avatar.*" -}}
|
2026-04-10 19:12:06 +02:00
|
|
|
{{- if $avatarRes -}}
|
|
|
|
|
{{- $av := $avatarRes.Resize "96x webp" -}}
|
|
|
|
|
<a href="{{ $.RelPermalink }}" class="flex-shrink-0">
|
2026-05-08 13:18:05 +02:00
|
|
|
<img
|
|
|
|
|
src="{{ $av.RelPermalink }}"
|
|
|
|
|
alt="{{ $.Params.name | default $.Title }}"
|
|
|
|
|
class="w-16 h-16 object-cover border border-zinc hover:border-heat transition-colors"
|
|
|
|
|
loading="lazy"
|
|
|
|
|
decoding="async"
|
|
|
|
|
/>
|
2026-04-10 19:12:06 +02:00
|
|
|
</a>
|
2026-05-08 13:18:05 +02:00
|
|
|
{{- else -}}
|
|
|
|
|
{{- with .Params.avatar -}}
|
|
|
|
|
<a href="{{ $.RelPermalink }}" class="flex-shrink-0">
|
|
|
|
|
<img
|
|
|
|
|
src="{{ . }}"
|
|
|
|
|
alt="{{ $.Params.name | default $.Title }}"
|
|
|
|
|
class="w-16 h-16 object-cover border border-zinc hover:border-heat transition-colors"
|
|
|
|
|
loading="lazy"
|
|
|
|
|
decoding="async"
|
|
|
|
|
/>
|
|
|
|
|
</a>
|
|
|
|
|
{{- end -}}
|
|
|
|
|
{{- end -}}
|
2026-04-08 19:49:15 +02:00
|
|
|
<div class="min-w-0">
|
2026-04-20 20:30:00 +02:00
|
|
|
<a href="{{ .RelPermalink }}" class="text-base font-display text-heat hover:text-frost transition-colors block">
|
2026-04-08 19:49:15 +02:00
|
|
|
{{ .Params.name | default .Title }}
|
|
|
|
|
</a>
|
|
|
|
|
{{- with .Params.bio -}}
|
2026-05-08 13:18:05 +02:00
|
|
|
<p class="text-fog text-sm leading-relaxed line-clamp-2 font-body">{{ . }}</p>
|
2026-04-08 19:49:15 +02:00
|
|
|
{{- end -}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|