1
0
beire-hugo/themes/api-theme/layouts/_default/list.api.json
2020-10-23 16:22:12 +02:00

10 lines
223 B
JSON

{{ define "response" }}
{
{{ with .Section }}"section" : "{{ . }}",{{ end }}
"count" : "{{ len .Data.Pages }}",
"items" : [{{ range $i, $e := .Data.Pages }}
{{ if $i }}, {{ end }}{{ .Render "item" }}
{{ end }}]
}
{{ end }}