Cleaning up output format types for JSON

This commit is contained in:
Brandon Rozek 2023-01-05 00:05:56 -05:00
parent fc0e72ba14
commit 1c8179bae3
No known key found for this signature in database
GPG key ID: 26E457DA82C9F480
7 changed files with 35 additions and 38 deletions

View file

@ -0,0 +1,20 @@
{
"version": "https://jsonfeed.org/version/1.1",
"title": "{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} | {{ end }}{{ .Site.Title }}{{ end }}",
"home_page_url": "{{ .Site.BaseURL }}",
"feed_url": "{{ .Permalink }}",
"description": "{{ .Description }}",
"icon": "{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}",
"language": "en-US",
"authors": [
{{with $.Site.Author.name }}
{ "name": "{{ . }}" }
{{ end }}
],
"items": [
{{ range $index, $page := .Pages }}{{ if ne $index 0 }},{{ end }}
{{ .Render "item" }}
{{ end }}
]
}