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

24 lines
793 B
JSON
Raw Normal View History

2023-01-05 01:09:46 -05:00
{
"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" }},
2023-01-05 12:45:09 -05:00
"toot_id": {{ .Params.mastodon_toot_id | jsonify }},
2023-01-05 01:25:24 -05:00
"toot_text": "{{ .Params.mastodon_toot_text | default ""}}"
2023-01-05 01:09:46 -05:00
},
"medium": {
"enabled": {{ .Params.medium_enabled | default "false" }},
2023-01-05 12:45:09 -05:00
"post_id": {{ .Params.medium_post_id | jsonify }}
2023-01-05 01:09:46 -05:00
}
}
}