fix: adjust author card avatar size and name styling

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-20 20:30:00 +02:00
parent 1c52f9ef6b
commit 8470b9d329
+3 -3
View File
@@ -6,15 +6,15 @@
{{- if $avatarRes -}} {{- if $avatarRes -}}
{{- $av := $avatarRes.Resize "96x webp" -}} {{- $av := $avatarRes.Resize "96x webp" -}}
<a href="{{ $.RelPermalink }}" class="flex-shrink-0"> <a href="{{ $.RelPermalink }}" class="flex-shrink-0">
<img src="{{ $av.RelPermalink }}" alt="{{ $.Params.name | default $.Title }}" class="w-12 h-12 object-cover border border-zinc hover:border-heat transition-colors" width="{{ $av.Width }}" height="{{ $av.Height }}" loading="lazy" decoding="async"> <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">
</a> </a>
{{- else -}}{{- with .Params.avatar -}} {{- else -}}{{- with .Params.avatar -}}
<a href="{{ $.RelPermalink }}" class="flex-shrink-0"> <a href="{{ $.RelPermalink }}" class="flex-shrink-0">
<img src="{{ . }}" alt="{{ $.Params.name | default $.Title }}" class="w-12 h-12 object-cover border border-zinc hover:border-heat transition-colors" loading="lazy" decoding="async"> <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> </a>
{{- end -}}{{- end -}} {{- end -}}{{- end -}}
<div class="min-w-0"> <div class="min-w-0">
<a href="{{ .RelPermalink }}" class="label text-heat hover:text-frost transition-colors block mb-1"> <a href="{{ .RelPermalink }}" class="text-base font-display text-heat hover:text-frost transition-colors block">
{{ .Params.name | default .Title }} {{ .Params.name | default .Title }}
</a> </a>
{{- with .Params.bio -}} {{- with .Params.bio -}}