fix: date format + content

This commit is contained in:
Cory Dransfeldt 2023-03-28 12:36:12 -07:00
parent 74c7f99d3a
commit 824bb49839
No known key found for this signature in database
3 changed files with 5 additions and 2 deletions

View file

@ -13,6 +13,7 @@ module.exports = async function () {
id: entry.url, id: entry.url,
title: entry.title, title: entry.title,
url: entry.url, url: entry.url,
content_html: entry.content || '',
date_published: entry.published, date_published: entry.published,
}) })
) )

View file

@ -13,7 +13,8 @@ permalink: '/feed.json'
"id": "{{ site.url }}{{ item.url }}" "id": "{{ site.url }}{{ item.url }}"
"title": "{{ item.data.title }}", "title": "{{ item.data.title }}",
"url": "{{ site.url }}{{ item.url }}", "url": "{{ site.url }}{{ item.url }}",
"date_published" "{{ item.date | date: "%m.%d.%Y" }}" "content_html": "{{ item.data.post_excerpt | mdToHtml }}",
"date_published" "{{ item.date | date: "%Y-%m-%dT%H:%M" }}"
}{% if not forloop.last %},{% endif %} }{% if not forloop.last %},{% endif %}
{% endfor %} {% endfor %}
] ]

View file

@ -13,7 +13,8 @@ permalink: '/follow.json'
"id": "{{ item.id }}", "id": "{{ item.id }}",
"title": "{{ item.title }}", "title": "{{ item.title }}",
"url": "{{ item.url }}", "url": "{{ item.url }}",
"date_published": "{{ item.date_published | date: "%m.%d.%Y" }}" "content_html": "{{ item.content_html | mdToHtml }}",
"date_published": "{{ item.date_published | date: "%Y-%m-%dT%H:%M" }}"
}{% if not forloop.last %},{% endif %} }{% if not forloop.last %},{% endif %}
{% endfor %} {% endfor %}
] ]