This commit is contained in:
teldra 2022-04-21 11:54:27 +02:00
parent 7641ea52fe
commit 4e8cfc1af1
1 changed files with 2 additions and 0 deletions

View File

@ -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 }}
<div>
<a href="{{- $image.Permalink -}}" class="no_underline">
{{- $permalink := "" -}}
@ -31,5 +32,6 @@
<div class="dfjcc">{{ .Text }}</div>
</a>
</div>
{{ end }}
{{ end }}
{{- end -}}