Optimizing author image thumbnail generation

Optimized author image resize to match expected display size
This commit is contained in:
Dekker500 2023-04-29 07:22:54 -04:00 committed by GitHub
parent b7ed7be5d8
commit 4a5107e842
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@
<span class="sr-only">{{ .Params.author }}</span>
{{ with .Params.authorimage }}
{{ with resources.Get . }}
{{ $authorimage := (.Resize "400x webp").RelPermalink }}
{{ $authorimage := (.Resize "40x webp").RelPermalink }}
<img class="w-10 h-10 rounded-full" src="{{ $authorimage }}" alt="">
{{ end }}
{{ end }}