From 553225bac64f762ce0a9ac5094ce6e3348f88f41 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Thu, 13 Jan 2022 18:23:01 +0100
Subject: chore: add feed formats to document head

---
 src/components/Layouts/Layout.tsx | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

(limited to 'src/components/Layouts/Layout.tsx')

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>
-- 
cgit v1.2.3

