website/themes/terminal-plus-minus/layouts/partials/json_feed_entry.json
2019-09-03 14:07:07 +08:00

18 lines
585 B
JSON

{{- if .IsPage -}}
{
"id": "{{ .Permalink }}",
"url": "{{ .Permalink }}",
"title": "{{ .Title }}",
"summary": {{ .Summary | jsonify }},
"content_html": {{ .Content | jsonify }},
{{- with .Params.cover -}}
"image": "{{ . }}",
{{- end -}}
"date_published": "{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}",
"date_modified": "{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}",
{{ with .Params.tags }}
"tags": {{ . | jsonify }}
{{ end }}
}
{{- end -}}