chore: feed date improvements

This commit is contained in:
Cory Dransfeldt 2023-09-06 13:46:16 -07:00
parent 46db92b948
commit f47c889725
No known key found for this signature in database
7 changed files with 50 additions and 33 deletions

View file

@ -1,4 +1,4 @@
{% assign entries = data | normalizeEntries %}
{%- assign entries = data | normalizeEntries -%}
{
"version": "https://jsonfeed.org/version/1",
"title": "{{ title }}",
@ -11,7 +11,7 @@
"title": "{{ entry.title | escape }}",
"url": "{{ entry.url }}",
"content_text": "{{ entry.title }} {{ entry.url }}",
"date_published": "{{ entry.date | date: "%Y-%m-%dT%H:%M:%S-08:00" }}"
"date_published": "{{ entry.date | stringToDate | dateToRfc822 }}"
}{% if not forloop.last %},{% endif %}
{%- endfor %}
]