summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/layouts/Layout.astro7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro
index 9e49ac8..6da5c0a 100644
--- a/src/layouts/Layout.astro
+++ b/src/layouts/Layout.astro
@@ -2,6 +2,7 @@
import Footer from '$components/Footer.astro';
import Navbar from '$components/Navbar/Navbar.astro';
import translate from '$i18n/translate';
+import tFeed from '$i18n/translations/pages/rss.xml';
import site from '$i18n/translations/site';
import getLocaleFromPath from '$lib/getLocaleFromPath';
@@ -24,6 +25,12 @@ const t = translate(locale);
<link rel="sitemap" href="/sitemap-index.xml" />
<link rel="stylesheet" href="/normalize.css" />
<link rel="stylesheet" href="/main.css" />
+ <link
+ rel="alternate"
+ type="application/rss+xml"
+ title={t(tFeed, { key: 'title' })}
+ href={`/${locale}/rss.xml`}
+ />
<meta name="generator" content={Astro.generator} />
<title>{title} | {t(site, { key: 'title' })}</title>
</head>