softinio.com/layouts/index.jsonfeed.json
2020-01-26 09:58:46 -08:00

22 lines
614 B
JSON

{
"version": "https://jsonfeed.org/version/1",
"title": "{{ .Site.Title }}",
"home_page_url": {{ .Permalink | jsonify }},
"feed_url": {{ with .OutputFormats.Get "jsonfeed" -}}
{{- .Permalink | jsonify -}}
{{- end }},
"items": [
{{ range $index, $entry := first 10 .Data.Pages }}
{{- if $index }}, {{ end }}
{
"id": {{ .Permalink | jsonify }},
"url": {{ .Permalink | jsonify }},
"title": {{ .Title | jsonify }},
"date_published": {{ .Date.Format "2006-01-02T15:04:05Z07:00" | jsonify }},
"content_html": {{ .Content | jsonify }}
}
{{- end }}
]
}