forked from Bunteshaus/bunteshaus.de
fix yaml
This commit is contained in:
parent
7641ea52fe
commit
4e8cfc1af1
|
@ -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 -}}
|
||||
|
|
Loading…
Reference in New Issue