mirror of
https://github.com/danbee/danbarber.me.hugo.git
synced 2025-03-04 08:59:18 +00:00
Fix JSONFeed validation errors
This commit is contained in:
parent
70604a94d7
commit
bf7345b9b0
@ -19,11 +19,11 @@
|
||||
"image": "{{ $image.RelPermalink }}",
|
||||
{{ end }}
|
||||
{{ if .Params.categories }}
|
||||
"categories": ["{{ delimit .Params.categories "," }}"],
|
||||
"tags": ["{{ delimit .Params.categories "," }}"],
|
||||
{{ end }}
|
||||
"content_html": {{ .Content | jsonify }},
|
||||
"url": "{{ .Permalink }}",
|
||||
"date_published": "{{ .Date }}"
|
||||
"date_published": "{{ .Date.Format "2006-01-02T15:04:05-07:00" }}"
|
||||
}
|
||||
{{ end }}
|
||||
]
|
||||
|
||||
@ -10,11 +10,12 @@
|
||||
{
|
||||
"id": "{{ .Permalink }}",
|
||||
"title": "{{ .Title }}",
|
||||
{{ if .Params.categories }}
|
||||
"tags": ["{{ delimit .Params.categories "\", \"" }}"],
|
||||
{{ end }}
|
||||
"content_html": {{ .Content | jsonify }},
|
||||
"url": "{{ .Permalink }}",
|
||||
"date_published": "{{ .Date }}"{{ if .Params.categories }},
|
||||
"categories": ["{{ delimit .Params.categories "\", \"" }}"]
|
||||
{{ end }}
|
||||
"date_published": "{{ .Date.Format "2006-01-02T15:04:05-07:00" }}"
|
||||
}
|
||||
{{ end }}
|
||||
]
|
||||
|
||||
@ -19,11 +19,11 @@
|
||||
"image": "{{ $image.RelPermalink }}",
|
||||
{{ end }}
|
||||
{{ if .Params.categories }}
|
||||
"categories": ["{{ delimit .Params.categories "," }}"],
|
||||
"tags": ["{{ delimit .Params.categories "," }}"],
|
||||
{{ end }}
|
||||
"content_html": {{ .Content | jsonify }},
|
||||
"url": "{{ .Permalink }}",
|
||||
"date_published": "{{ .Date }}"
|
||||
"date_published": "{{ .Date.Format "2006-01-02T15:04:05-07:00" }}"
|
||||
}
|
||||
{{ end }}
|
||||
]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user