You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
1.1 KiB
HTML
18 lines
1.1 KiB
HTML
{{ $params := . }}
|
|
|
|
{{ $alt := $params.alt }}
|
|
{{ $class := $params.class }}
|
|
{{ $crossorigin := $params.crossorigin | default "anonymous" }}
|
|
{{ $fetchpriority := $params.fetchpriority }}
|
|
{{ $height := $params.height }}
|
|
{{ $loading := $params.loading | default "eager" }}
|
|
{{ $referrerpolicy := $params.referrerpolicy | default "no-referrer" }}
|
|
{{ $sizes := $params.sizes }}
|
|
{{ $src := $params.src }}
|
|
{{ $srcset := $params.srcset }}
|
|
{{ $style := $params.style }}
|
|
{{ $title := $params.title }}
|
|
{{ $width := $params.width }}
|
|
|
|
<img {{ with $alt }} alt="{{ . }}" {{ end }} {{ with $class }} class="{{ . }}" {{ end }} crossorigin="{{ $crossorigin }}" {{ if and $fetchpriority (ne $fetchpriority "auto") }} fetchpriority="{{ $fetchpriority }}" {{ end }} {{ with $height }} height="{{ . }}" {{ end }} {{ if ne $loading "eager" }} loading="{{ $loading }}" {{ end }} referrerpolicy="{{ $referrerpolicy }}" {{ with $sizes }} sizes="{{ . }}" {{ end }} src="{{ $src }}" {{ with $srcset }} {{ printf `srcset="%s"` . | safeHTMLAttr }} {{ end }} {{ with $style }} style="{{ . | safeCSS }}" {{ end }} {{ with $title }} title="{{ . }}" {{ end }} {{ with $width }} width="{{ . }}" {{ end }}>
|