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