iimg shortcut: add missing class attribute

This commit is contained in:
Helmut Merz 2023-10-10 11:27:56 +02:00
parent 9051375a03
commit 93de6c6a98

View file

@ -21,7 +21,8 @@
{{- end -}} {{- end -}}
{{- if $refPage -}} {{- if $refPage -}}
<a href="{{ $refPage.Permalink }}"><img <a href="{{ $refPage.Permalink }}"><img
src="{{ $image.RelPermalink }}" alt="{{ or $alt $refPage.Title }}"></a> src="{{ $image.RelPermalink }}" alt="{{ or $alt $refPage.Title }}"
class="{{ $class }}"></a>
{{- else -}} {{- else -}}
<img src="{{ $image.RelPermalink }}" alt="{{ $alt }}" class="{{ $class }}"> <img src="{{ $image.RelPermalink }}" alt="{{ $alt }}" class="{{ $class }}">
{{- end -}} {{- end -}}