chore: feed date improvements
This commit is contained in:
parent
46db92b948
commit
f47c889725
7 changed files with 50 additions and 33 deletions
|
@ -3,10 +3,10 @@
|
|||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
{% assign entries = data | normalizeEntries %}
|
||||
<title>{{ title }}</title>
|
||||
<link href="{{ site.url }}{{ permalink }}" rel="self" />
|
||||
<link href="{{ permalink | absoluteUrl: site.url }}" rel="self" />
|
||||
<link href="{{ site.url }}" />
|
||||
<link rel="hub" href="https://pubsubhubbub.superfeedr.com/" />
|
||||
<updated>{{ updated | date: "%Y-%m-%dT%H:%M:%S-08:00" }}</updated>
|
||||
<updated>{{ updated | stringToDate | dateToRfc822 }}</updated>
|
||||
<id>{{ site.url }}</id>
|
||||
<author>
|
||||
<name>{{ site.name }}</name>
|
||||
|
@ -20,6 +20,7 @@
|
|||
<updated>{{ entry.date | date: "%m.%d.%Y" }}</updated>
|
||||
<id>{{ entry.url | stripUtm | encodeAmp }}</id>
|
||||
<content type="html">
|
||||
{{ entry.excerpt | escape }}
|
||||
</content>
|
||||
</entry>
|
||||
{%- endfor %}
|
||||
|
|
|
@ -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