blob: c0152f3e097d79c4d91a82abc51a903f31fd17db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
[{{ range $index, $page := .Site.Pages }}
{{- if not (hasPrefix $page.Section "_") -}}
{{- if not (hasPrefix $page.File.BaseFileName "__") -}}
{{- 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 -}}
{{- end -}}
{{- end -}}]
|