FIX avatar image CHANGE class names

This commit is contained in:
Hoernschen 2024-01-14 12:16:30 +01:00
parent 87d8c05eb2
commit ec90ac9b77
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
3 changed files with 24 additions and 20 deletions

View file

@ -5,7 +5,6 @@ alt: string
width: int
height: int
-->
{{ $avatar := "avatar"}}
{{ $sizes := slice "320" "640" "960" "1280" }}
{{ $ext := path.Ext .url }}
{{ $name := path.Base (replace .url $ext "") }}
@ -31,7 +30,7 @@ height: int
"
/>
<img
class="{{if eq .type $avatar}}avatar{{end}}"
class="{{ .type }}"
width="{{ .width }}"
height="{{ .height }}"
srcset="