another comma fix
This commit is contained in:
parent
593e6611c2
commit
f577773958
@ -5,13 +5,14 @@
|
|||||||
"feed_url": "{{ .Permalink }}",
|
"feed_url": "{{ .Permalink }}",
|
||||||
"description": "A feed of my notes from {{ .Site.Title }}",
|
"description": "A feed of my notes from {{ .Site.Title }}",
|
||||||
"items": [
|
"items": [
|
||||||
{{- range $index, $page := .Pages.ByDate.Reverse }}
|
{{- $length := sub (len .Pages) 1 -}}
|
||||||
|
{{- range $index, $page := .Pages.ByDate.Reverse -}}
|
||||||
{
|
{
|
||||||
"id": "{{ $page.Permalink }}",
|
"id": "{{ $page.Permalink }}",
|
||||||
"url": "{{ $page.Permalink }}",
|
"url": "{{ $page.Permalink }}",
|
||||||
"content_text": {{ $page.Plain | jsonify }},
|
"content_text": {{ $page.Plain | jsonify }},
|
||||||
"date_published": "{{ $page.Date.Format "2006-01-02T15:04:05Z07:00" }}"
|
"date_published": "{{ $page.Date.Format "2006-01-02T15:04:05Z07:00" }}"
|
||||||
}{{ if lt $index (sub (len .Pages) 1) }},{{ end }}
|
}{{ if lt $index $length }},{{ end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user