1
0
beire-hugo/themes/api-theme/layouts/_default/list.api.json
2020-10-23 01:59:38 +02:00

10 lines
231 B
JSON

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