From fd75885c7612501fa038c51d1ac4c96c37e34a75 Mon Sep 17 00:00:00 2001 From: keyan Date: Tue, 24 Aug 2021 14:44:00 -0500 Subject: [PATCH] fix rss bugs --- lib/rss.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rss.js b/lib/rss.js index 6cd643eb..62255028 100644 --- a/lib/rss.js +++ b/lib/rss.js @@ -21,7 +21,7 @@ const generateRssItem = (item) => { ${SITE_URL}/items/${item.id} ${escapeXml(item.title)} - ${link} + ${escapeXml(link)} ${guid} Comments]]> ${new Date(item.createdAt).toUTCString()} @@ -32,14 +32,14 @@ const generateRssItem = (item) => { export default function generateRssFeed (items) { const itemsList = items.map(generateRssItem) return ` - + ${SITE_TITLE} ${SITE_URL} ${SITE_SUBTITLE} en ${new Date().toUTCString()} - ${SITE_URL} + ${itemsList.join('')}