22 lines
1009 B
JSON
22 lines
1009 B
JSON
{{ if eq .Type "publication" }}
|
|
{{ $paginator := .Paginate (where .Pages "Type" "publication") 100 }}
|
|
[{{ range $index, $page := $paginator.Pages }}
|
|
{{- if ne $page.Type "json" -}}
|
|
{{- if and $index (gt $index 0) -}},{{- end }}
|
|
{
|
|
"uri": "{{ $page.Permalink }}",
|
|
"title": "{{ htmlEscape $page.Title}}",
|
|
"shorttitle": "{{ htmlEscape $page.Params.shorttitle}}",
|
|
"booktitle": "{{ htmlEscape $page.Params.booktitle}}",
|
|
"tags": [{{ range $tindex, $tag := $page.Params.tags }}{{ if $tindex }}, {{ end }}"{{ $tag| htmlEscape }}"{{ end }}],
|
|
"authors": "{{ with $page.Params.authors }}{{ delimit . ", " }}{{ end }}",
|
|
"abstract": "{{ with $page.Params.abstract }}{{ . | markdownify }}{{ end }}",
|
|
"ENTRYTYPE": "{{ with $page.Params.ENTRYTYPE }}{{ . }}{{ end }}",
|
|
"publication": "{{ with $page.Params.publication }}{{ . }}{{ end }}",
|
|
"publishDate": "{{ with $page.Params.publishDate }}{{ . }}{{ end }}",
|
|
"permalink": "{{ .Permalink }}",
|
|
"content": {{$page.Plain | jsonify}}
|
|
}
|
|
{{- end -}}
|
|
{{- end -}}]
|
|
{{ end }} |