13 lines
312 B
JSON
13 lines
312 B
JSON
{{- $first := true -}}
|
|
{{- range .Resources.ByType "image" -}}
|
|
{{- if not $first }}, {{ end }}
|
|
{{ $first = false -}}
|
|
{
|
|
"title": "{{ .Title }}",
|
|
"url": "{{ .RelPermalink }}",
|
|
"width": "{{ .Width }}",
|
|
"height": "{{ .Height }}",
|
|
"thumbnail": "{{ (.Fit "200x200").RelPermalink }}"
|
|
}
|
|
{{ end -}}
|