From a49eb12713217d0ec90e556235fcfebb51dc25db Mon Sep 17 00:00:00 2001 From: Antony Jones Date: Tue, 12 May 2020 08:00:49 +0100 Subject: [PATCH] remove rss.xml --- site/src/routes/faq/index.json.js | 1 + site/src/routes/faq/rss.xml.js | 42 ------------------------------- 2 files changed, 1 insertion(+), 42 deletions(-) delete mode 100644 site/src/routes/faq/rss.xml.js diff --git a/site/src/routes/faq/index.json.js b/site/src/routes/faq/index.json.js index 0a53d2fa83..ec872b45b7 100644 --- a/site/src/routes/faq/index.json.js +++ b/site/src/routes/faq/index.json.js @@ -1,3 +1,4 @@ +import send from '@polka/send'; import get_faqs from './_faqs.js'; let json; diff --git a/site/src/routes/faq/rss.xml.js b/site/src/routes/faq/rss.xml.js deleted file mode 100644 index 974806ad44..0000000000 --- a/site/src/routes/faq/rss.xml.js +++ /dev/null @@ -1,42 +0,0 @@ -import send from '@polka/send'; -import get_posts from '../blog/_posts.js'; - -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} 12:00 +0000`; -} - -const rss = ` - - - - - Svelte blog - https://svelte.dev/blog - News and information about the magical disappearing UI framework - - https://svelte.dev/favicon.png - Svelte - https://svelte.dev/blog - - ${get_posts().filter(post => !post.metadata.draft).map(post => ` - - ${post.metadata.title} - https://svelte.dev/blog/${post.slug} - ${post.metadata.description} - ${formatPubdate(post.metadata.pubdate)} - - `).join('')} - - - -`.replace(/>[^\S]+/gm, '>').replace(/[^\S]+