fix(json.liquid): properly format JSON feed dates to align with RFC3339 format

This commit is contained in:
Cory Dransfeldt 2025-06-03 08:30:26 -07:00
parent 1239de5b1f
commit 788edbcb11
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -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 -%}