small fixes

This commit is contained in:
teldra 2022-06-15 21:52:38 +02:00
parent 96d0e35931
commit 335c101475
1 changed files with 3 additions and 2 deletions

View File

@ -89,8 +89,9 @@
{{- end -}}
{{- range .Resources.ByType "image" -}}
{{- if not (hasPrefix . "banner") }}
{{- $c = printf "%s<img src=\"%s\" width=\"%d\" height=\"%d\" />" $c .Permalink .Width .Height -}}
{{ $img := . }}
{{- if not (hasPrefix $img.Name "banner") }}
{{- $c = printf "%s<img src=\"%s\" width=\"%d\" height=\"%d\" />" $c $img.Permalink $img.Width $img.Height -}}
{{- end -}}
{{- end -}}