fix(json.liquid): properly format JSON feed dates to align with RFC3339 format
This commit is contained in:
parent
1239de5b1f
commit
788edbcb11
3 changed files with 4 additions and 4 deletions
|
@ -28,7 +28,7 @@ permalink: "{{ feed.permalink }}.json"
|
|||
"id": "{{ feedItem.url | generatePermalink: globals.url | encodeAmp }}",
|
||||
"title": {{ feedItem.title | jsonEscape }},
|
||||
"content_html": {{ contentHtml | jsonEscape }},
|
||||
"date_published": "{{ feedItem.date | date: "%a, %d %b %Y %H:%M:%S %z" }}",
|
||||
"date_published": "{{ feedItem.date | date: "%Y-%m-%dT%H:%M:%S%:z" }}",
|
||||
"url": "{{ feedItem.url | generatePermalink: globals.url | encodeAmp }}"
|
||||
}{%- unless forloop.last -%},{%- endunless -%}
|
||||
{%- endfor -%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue