website-theme/layouts/_default/list.json.json

27 lines
1,000 B
JSON

{
"version": "https://jsonfeed.org/version/1.1",
"title": "{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} | {{ end }}{{ .Site.Title }}{{ end }}",
"home_page_url": "{{ .Site.BaseURL }}",
"feed_url": "{{ .Permalink }}",
"description": "{{ .Description }}",
"icon": "{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}",
"language": "en-US",
"authors": [
{{with $.Site.Author.name }}
{ "name": "{{ . }}" }
{{ end }}
],
"items": [
{{ range $index, $page := .Pages }}{{ if ne $index 0 }},{{ end }}
{
"id": "{{ $page.Permalink }}",
"url": "{{ $page.Permalink }}",
"title": {{ $page.Title | jsonify }},
"content_html": {{ $page.Content | jsonify }},
"date_published": "{{ $page.Date.Format "2006.01.02" }}",
"tags": {{ $page.Params.tags | jsonify }}
}
{{ end }}
]
}