diff --git a/src/components/Footer.astro b/src/components/Footer.astro index c77b21f..f402e26 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -36,5 +36,12 @@ const today = new Date(); LinkedIn + +
  • + + + RSS + +
  • diff --git a/src/pages/rss.xml.js b/src/pages/rss.xml.js index 4705d7a..54ddcf7 100644 --- a/src/pages/rss.xml.js +++ b/src/pages/rss.xml.js @@ -6,6 +6,10 @@ export async function GET(context) { const sortedNotes = notes.sort( (a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf(), ); + const rssLangTag = { + English: "en", + Korean: "ko", + }; return rss({ title: "Hyun Don's Blog", @@ -17,7 +21,7 @@ export async function GET(context) { pubDate: data.pubDate, description: data.summary, link: `/notes/${slug}`, - customData: data.language, + customData: `${rssLangTag[data.language] || "en"}`, })), }); }