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

24 lines
No EOL
793 B
JSON

{
"id": "{{ .Permalink }}",
"url": "{{ .Permalink }}",
"title": {{ .Title | jsonify }},
"authors": [
{{with $.Site.Author.name }}
{ "name": "{{ . }}" }
{{ end }}
],
"content_html": {{ .Content | jsonify }},
"date_published": "{{ .Date.Format "2006.01.02" }}",
"tags": {{ .Params.tags | jsonify }},
"_syndication": {
"mastodon": {
"enabled": {{ .Params.mastodon_enabled | default "false" }},
"toot_id": {{ .Params.mastodon_toot_id | jsonify }},
"toot_text": "{{ .Params.mastodon_toot_text | default ""}}"
},
"medium": {
"enabled": {{ .Params.medium_enabled | default "false" }},
"post_id": {{ .Params.medium_post_id | jsonify }}
}
}
}