42 lines
1009 B
HTML
42 lines
1009 B
HTML
{{- $search := "**.jpg" -}}
|
|
{{ with .Get "search" -}}
|
|
{{- $search = . }}
|
|
{{- else -}}
|
|
{{- $search = .Get 0 -}}
|
|
{{- end -}}
|
|
|
|
{{- $keep := false -}}
|
|
{{- with .Get "original" -}}
|
|
{{- $keep = . }}
|
|
{{- else -}}
|
|
{{- $keep = .Get 2 -}}
|
|
{{- end -}}
|
|
|
|
{{- if eq $keep "true" -}}
|
|
{{- $keep = true -}}
|
|
{{- else -}}
|
|
{{- $keep = false -}}
|
|
{{- end -}}
|
|
|
|
{{- $description := true -}}
|
|
{{- with .Get "description" -}}
|
|
{{- $description = . }}
|
|
{{- else -}}
|
|
{{- $description = .Get 1 -}}
|
|
{{- end -}}
|
|
|
|
{{- if eq $description "false" -}}
|
|
{{- $description = false -}}
|
|
{{- else -}}
|
|
{{- $description = true -}}
|
|
{{- end -}}
|
|
|
|
<ul class="clearfix list-unstyled flex row gallery">
|
|
{{ range $.Page.Resources.Match $search }}
|
|
{{- if (ne .Params.featured true) -}}
|
|
<li class="padding">
|
|
{{- partial "figure.html" (dict "image" . "ctx" . "lightbox" true "class" "gallery" "showTitle" true "showDescription" $description "keepOriginal" $keep) -}}
|
|
</li>
|
|
{{- end -}}
|
|
{{- end -}}
|
|
</ul> |