mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
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 -}}]
|