refactoring

This commit is contained in:
stereobooster
2023-11-26 14:47:26 +01:00
parent 0c6c30fec1
commit c8b33ae51e
6 changed files with 8 additions and 16 deletions
+1 -1
View File
@@ -18,7 +18,7 @@
{{ with $href }}<a href="{{ . }}">{{ end }}
{{- with $img -}}
{{ partial "pictureDefaults.html" (dict "img" . "alt" $altText "class" $class) }}
{{ partial "picture.html" (dict "img" . "alt" $altText "class" $class) }}
{{- else -}}
<img src="{{ $url.String }}" alt="{{ $altText }}" class="{{ $class }}"/>
{{- end -}}