{{ $path := "/images/" }} {{ $filename := .Get "filename" }} {{ with $.Site.Params.imagespath }} {{ $path := ( . ) }}{{ end }}
{{ with .Get "title" }}
{{ . }}
{{ end }} {{ with .Get "link"}} {{ if eq . "modal" }}{{ else }}{{ end }} {{ end }} {{ if .Get "link"}}{{ end }} {{ with .Get "caption"}}
{{ . }}
{{ end }}