{{ .Title }}
{{ .Content }} {{ $path := .Page.File.Path | strings.TrimSuffix (path.Ext .Page.File.Path) }} {{ $path := printf "%s/*" $path }} {{ $images := where (resources.Match $path ) "ResourceType" "eq" "image" }}
{{ range $images }}
{{ end }}
{{ $file:= .Page.Params.archive }}
{{ with $file }}
{{ if not (resources.Get $file) }}
{{ errorf "Error: 'file' is a required parameter." }}
{{ end }}
{{ i18n "gallery.download" }}
{{- with resources.Get $file -}} Download {{ path.Ext $file }} {{- end -}} {{ end }}