Optimizing author image thumbnail generation
Optimized author image resize to match expected display size
This commit is contained in:
parent
b7ed7be5d8
commit
4a5107e842
|
@ -36,7 +36,7 @@
|
||||||
<span class="sr-only">{{ .Params.author }}</span>
|
<span class="sr-only">{{ .Params.author }}</span>
|
||||||
{{ with .Params.authorimage }}
|
{{ with .Params.authorimage }}
|
||||||
{{ with resources.Get . }}
|
{{ with resources.Get . }}
|
||||||
{{ $authorimage := (.Resize "400x webp").RelPermalink }}
|
{{ $authorimage := (.Resize "40x webp").RelPermalink }}
|
||||||
<img class="w-10 h-10 rounded-full" src="{{ $authorimage }}" alt="">
|
<img class="w-10 h-10 rounded-full" src="{{ $authorimage }}" alt="">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue