23 lines
635 B
JSON
23 lines
635 B
JSON
|
{
|
||
|
"id": {{ .Params.id }},
|
||
|
"sort": {{ .Params.sort }},
|
||
|
"title": "{{ .Title }}",
|
||
|
"questions": [{{ range $index, $question := .Params.questions }}
|
||
|
{{ if $index }}, {{ end }}
|
||
|
{
|
||
|
"id": {{ $question.id }},
|
||
|
"sort": {{ $index }},
|
||
|
"title": "{{ $question.title }}",
|
||
|
"answers": [{{ range $i, $answer := $question.answers }}
|
||
|
{
|
||
|
"id": {{ $answer.id }},
|
||
|
"sort": {{ $i }},
|
||
|
"title": "{{ $answer.title }}",
|
||
|
"weight": "{{ $answer.weight }}",
|
||
|
}
|
||
|
{{ end }}]
|
||
|
}
|
||
|
{{ end }}]
|
||
|
"permalink" : "{{ .Permalink }}"
|
||
|
}
|