diff --git a/themes/red/layouts/_default/_markup/render-image.html b/themes/red/layouts/_default/_markup/render-image.html index df7870c..09ec5c7 100644 --- a/themes/red/layouts/_default/_markup/render-image.html +++ b/themes/red/layouts/_default/_markup/render-image.html @@ -5,6 +5,11 @@ {{ $path := path.Join .Page.File.Dir .Destination }} {{- $img = resources.Get $path -}} {{- end -}} + +{{- if and (not $img) .Page.File -}} + {{- $img = resources.Get .Destination -}} +{{- end -}} + {{- with $img -}}