aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Layouts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-13 18:35:48 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-13 18:35:48 +0100
commit02ee023272c4f28fd866de40dd2b15a7f7b75a4a (patch)
treee7d29b73e679f07906068593d0e25bf6f8c728fe /src/components/Layouts
parent606461f857e06b06429dd5738be642f9d1b459be (diff)
parent320b5782f348d42f6a2bb74a70d4d114525355e4 (diff)
feat: add feeds (rss, atom, json)
Diffstat (limited to 'src/components/Layouts')
-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>