You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
428 B
JSON
12 lines
428 B
JSON
[{{ range $index, $page := .Site.Pages }}
|
|
{{- if ne $page.Type "json" -}}
|
|
{{- if and $index (gt $index 0) -}},{{- end }}
|
|
{
|
|
"uri": "{{ $page.Permalink }}",
|
|
"title": "{{ htmlEscape $page.Title}}",
|
|
"tags": [{{ range $tindex, $tag := $page.Params.tags }}{{ if $tindex }}, {{ end }}"{{ $tag| htmlEscape }}"{{ end }}],
|
|
"description": "{{ htmlEscape .Description}}",
|
|
"content": {{$page.Plain | jsonify}}
|
|
}
|
|
{{- end -}}
|
|
{{- end -}}] |