12 lines
249 B
Text
12 lines
249 B
Text
- if src
|
|
= image_tag src,
|
|
srcset: srcset,
|
|
alt: alt,
|
|
class: avatar_classes,
|
|
height: @size,
|
|
width: @size,
|
|
loading: "lazy",
|
|
**@avatar_options
|
|
- else
|
|
%div{ @avatar_options, alt: alt, class: avatar_classes }
|
|
= initial
|