|
|
|
@ -4,7 +4,7 @@ const months = ',Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec'.split( ',' );
|
|
|
|
|
|
|
|
|
|
function formatPubdate(str) {
|
|
|
|
|
const [y, m, d] = str.split('-');
|
|
|
|
|
return `${d} ${months[+m]} ${y}`;
|
|
|
|
|
return `${d} ${months[+m]} ${y} 12:00 +0000`;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const rss = `
|
|
|
|
@ -27,7 +27,7 @@ const rss = `
|
|
|
|
|
<description>${post.metadata.description}</description>
|
|
|
|
|
<pubDate>${formatPubdate(post.metadata.pubdate)}</pubDate>
|
|
|
|
|
</item>
|
|
|
|
|
` )}
|
|
|
|
|
`).join('')}
|
|
|
|
|
</channel>
|
|
|
|
|
|
|
|
|
|
</rss>
|
|
|
|
|