fix: date format + content
This commit is contained in:
parent
74c7f99d3a
commit
824bb49839
3 changed files with 5 additions and 2 deletions
|
@ -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,
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
|
@ -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 %}
|
||||||
]
|
]
|
||||||
|
|
|
@ -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 %}
|
||||||
]
|
]
|
||||||
|
|
Reference in a new issue