diff --git a/themes/buha/layouts/_default/_markup/render-image.html b/themes/buha/layouts/_default/_markup/render-image.html index 91540a2..6726d9e 100644 --- a/themes/buha/layouts/_default/_markup/render-image.html +++ b/themes/buha/layouts/_default/_markup/render-image.html @@ -11,6 +11,7 @@ {{ $nr := .Destination }} {{- $pic := index (.Page.Resources.ByType "image") (int $nr) -}} {{- $image := .Page.Resources.GetMatch (printf "%s" ($pic | safeURL)) -}} + {{ if ne $image nil }}
{{- $permalink := "" -}} @@ -31,5 +32,6 @@
{{ .Text }}
+ {{ end }} {{ end }} {{- end -}}