mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 23:38:56 +00:00
🐛 Fix: image plugin
This commit is contained in:
@@ -31,8 +31,8 @@
|
||||
<img loading="{{ $loading }}" src="{{ .Src | safeURL }}" srcset="{{ $small | safeURL }}, {{ .Src | safeURL }} 1.5x, {{ $large | safeURL }} 2x" sizes="auto" alt="{{ $alt }}" title="{{ .Title | default $alt }}"
|
||||
{{- with $width }} width="{{ . }}"{{- end -}}
|
||||
{{- with $height }} height="{{ . }}"{{- end -}}
|
||||
{{- with .Class -}}class="{{ . }}"{{- end -}}
|
||||
{{- if eq $loading "lazy" -}} onload="this.classList.add('lazyloaded')"{{- end -}}
|
||||
{{- with .Class }} class="{{ . }}"{{- end -}}
|
||||
{{- if eq $loading "lazy" }} onload="this.classList.add('lazyloaded')"{{- end -}}
|
||||
/>
|
||||
{{- if .Linked -}}
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user