aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-13 18:23:01 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-13 18:25:39 +0100
commit553225bac64f762ce0a9ac5094ce6e3348f88f41 (patch)
tree4aa211b8443d3aa052cf9976cfd1141208010588
parenta32f7b146c216f4159f65d5c0b9a7189d31b2f5a (diff)
chore: add feed formats to document head
-rw-r--r--src/components/Layouts/Layout.tsx22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/components/Layouts/Layout.tsx b/src/components/Layouts/Layout.tsx
index 35e7d27..8a57cf6 100644
--- a/src/components/Layouts/Layout.tsx
+++ b/src/components/Layouts/Layout.tsx
@@ -4,6 +4,8 @@ import Header from '@components/Header/Header';
import Main from '@components/Main/Main';
import Breadcrumb from '@components/Breadcrumb/Breadcrumb';
import { t } from '@lingui/macro';
+import Head from 'next/head';
+import { config } from '@config/website';
const Layout = ({
children,
@@ -14,6 +16,26 @@ const Layout = ({
}) => {
return (
<>
+ <Head>
+ <link
+ rel="alternate"
+ href="/feed.xml"
+ type="application/rss+xml"
+ title={`${config.name}'s RSS feed`}
+ />
+ <link
+ rel="alternate"
+ href="/atom.xml"
+ type="application/atom+xml"
+ title={`${config.name}'s RSS feed`}
+ />
+ <link
+ rel="alternate"
+ href="/feed.json"
+ type="application/feed+json"
+ title={`${config.name}'s RSS feed`}
+ />
+ </Head>
<a href="#main" className="screen-reader-text">{t`Skip to content`}</a>
<Header isHome={isHome} />
<Main>{children}</Main>