forked from Bunteshaus/bunteshaus.de
fix yaml
This commit is contained in:
parent
7641ea52fe
commit
4e8cfc1af1
|
@ -11,6 +11,7 @@
|
||||||
{{ $nr := .Destination }}
|
{{ $nr := .Destination }}
|
||||||
{{- $pic := index (.Page.Resources.ByType "image") (int $nr) -}}
|
{{- $pic := index (.Page.Resources.ByType "image") (int $nr) -}}
|
||||||
{{- $image := .Page.Resources.GetMatch (printf "%s" ($pic | safeURL)) -}}
|
{{- $image := .Page.Resources.GetMatch (printf "%s" ($pic | safeURL)) -}}
|
||||||
|
{{ if ne $image nil }}
|
||||||
<div>
|
<div>
|
||||||
<a href="{{- $image.Permalink -}}" class="no_underline">
|
<a href="{{- $image.Permalink -}}" class="no_underline">
|
||||||
{{- $permalink := "" -}}
|
{{- $permalink := "" -}}
|
||||||
|
@ -32,4 +33,5 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user