chore: feed date improvements
This commit is contained in:
parent
46db92b948
commit
f47c889725
7 changed files with 50 additions and 33 deletions
|
@ -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 %}
|
||||
]
|
||||
|
|
Reference in a new issue