Added syndication property

This commit is contained in:
Brandon Rozek 2023-01-05 00:45:02 -05:00
parent 0247538cec
commit 5e7105d528
No known key found for this signature in database
GPG key ID: 26E457DA82C9F480
3 changed files with 28 additions and 10 deletions

View file

@ -13,7 +13,14 @@
],
"items": [
{{ range $index, $page := .Pages }}{{ if ne $index 0 }},{{ end }}
{{ .Render "item" }}
{
"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 }}
]
}