1
0
beire-hugo/themes/api-theme/layouts/_default/list.api.json

10 lines
223 B
JSON
Raw Normal View History

2020-10-21 12:47:37 +02:00
{{ define "response" }}
2020-10-23 01:59:38 +02:00
{
{{ with .Section }}"section" : "{{ . }}",{{ end }}
"count" : "{{ len .Data.Pages }}",
"items" : [{{ range $i, $e := .Data.Pages }}
2020-10-23 16:22:12 +02:00
{{ if $i }}, {{ end }}{{ .Render "item" }}
2020-10-23 01:59:38 +02:00
{{ end }}]
}
2020-10-21 12:47:37 +02:00
{{ end }}