{{- $gallery_path_static := printf "%s%s" "static" .gallery_path -}} {{- $static_path := $gallery_path_static -}} {{- $path := .gallery_path -}} {{- if fileExists $static_path -}} {{- end -}}