site: fix invalid blog rss feed (#2085) and tidy

pull/2087/head
Conduitry 7 years ago
parent d61616e148
commit f262293135

@ -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>

Loading…
Cancel
Save