From 8200c8d0402cb40e9f65c49dac5be621360a3a20 Mon Sep 17 00:00:00 2001
From: bfahrenfort <59982409+bfahrenfort@users.noreply.github.com>
Date: Thu, 24 Aug 2023 00:57:49 -0500
Subject: [PATCH] Revert contentIndex to RSS 2.0 (#407)
---
quartz/plugins/emitters/contentIndex.ts | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/quartz/plugins/emitters/contentIndex.ts b/quartz/plugins/emitters/contentIndex.ts
index a18e54e3e..4610cd410 100644
--- a/quartz/plugins/emitters/contentIndex.ts
+++ b/quartz/plugins/emitters/contentIndex.ts
@@ -41,26 +41,26 @@ function generateRSSFeed(cfg: GlobalConfiguration, idx: ContentIndex): string {
const base = cfg.baseUrl ?? ""
const root = `https://${base}`
- const createURLEntry = (slug: SimpleSlug, content: ContentDetails): string => `
+ const createURLEntry = (slug: SimpleSlug, content: ContentDetails): string => `-
${content.title}
${root}/${slug}
${root}/${slug}
${content.description}
${content.date?.toUTCString()}
-
`
+ `
const items = Array.from(idx)
.map(([slug, content]) => createURLEntry(simplifySlug(slug), content))
.join("")
- return `
+ return `
+
${cfg.pageTitle}
${root}
Recent content on ${cfg.pageTitle}
Quartz -- quartz.jzhao.xyz
-
+ ${items}
- ${items}
`
}