2023-05-05 16:36:10 +02:00
|
|
|
{
|
|
|
|
"version": "https://jsonfeed.org/version/1",
|
|
|
|
"title": "{{ .Site.Title }}",
|
|
|
|
"home_page_url": "{{ .Site.BaseURL }}",
|
2023-05-14 22:18:49 +02:00
|
|
|
"feed_url": "{{ absURL "feed.json" }}",
|
2023-05-05 16:36:10 +02:00
|
|
|
"description": "{{ .Site.Params.description }}",
|
2023-05-14 22:18:49 +02:00
|
|
|
"favicon": "{{ absURL "assets/favicon.ico" }}",
|
2023-05-05 16:36:10 +02:00
|
|
|
"expired": false,
|
|
|
|
"author": {
|
|
|
|
"name": "{{ .Site.Params.author }}",
|
|
|
|
"url": "{{ .Site.BaseURL }}"
|
|
|
|
},
|
|
|
|
"items": [
|
2023-05-23 13:36:45 +02:00
|
|
|
{{ $list := (where .Site.RegularPages "Type" "posts") }}
|
2023-05-05 16:36:10 +02:00
|
|
|
{{ $len := (len $list) }}
|
|
|
|
|
|
|
|
{{ range $index, $element := $list }}
|
|
|
|
{
|
|
|
|
"id": {{ sha1 .Title | jsonify }},
|
|
|
|
"title": {{ .Title | jsonify }},
|
|
|
|
"summary": {{ .Description | jsonify }},
|
|
|
|
"content_text": {{ .Content | plainify | jsonify }},
|
|
|
|
"content_html": {{ .Content | jsonify }},
|
|
|
|
"url": {{ .Permalink | jsonify }},
|
|
|
|
"date_published": "{{ .Date.Format `2016-02-09T14:22:00-07:00` | safeHTML }}",
|
|
|
|
"date_modified": "{{ .Date.Format `2016-02-09T14:22:00-07:00` | safeHTML }}",
|
|
|
|
"author": {
|
|
|
|
"name": "{{ .Site.Params.author }}",
|
|
|
|
"url": "{{ .Site.BaseURL }}"
|
|
|
|
}
|
|
|
|
}{{ if ne (add $index 1) $len }},{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
]
|
2023-05-14 22:18:49 +02:00
|
|
|
}
|