From 560e3e9c7ebb5a237cd8e3be982023c33bd10d9b Mon Sep 17 00:00:00 2001
From: Thomas Bouffard <27200110+tbouffard@users.noreply.github.com>
Date: Wed, 22 Dec 2021 16:24:54 +0100
Subject: [PATCH 1/2] [FEAT] Simplify header in non 'home' pages
In blog and news pages: remove links to posts and news in header
Use header, footer and mail subscription in the 404 page
---
src/pages/404.tsx | 11 +++++++++--
src/theme/components/PageHeader.tsx | 16 ----------------
2 files changed, 9 insertions(+), 18 deletions(-)
diff --git a/src/pages/404.tsx b/src/pages/404.tsx
index 65e4cea81..fd025b6d8 100644
--- a/src/pages/404.tsx
+++ b/src/pages/404.tsx
@@ -21,9 +21,13 @@ import Triangle from '../theme/components/Triangle';
import { Link } from 'gatsby';
import Img from '../images/404.png';
import { PAGE } from '../theme/utils/constants';
+import PageHeader from '../theme/components/PageHeader';
+import Footer from '../theme/components/Footer';
+import { MailingListSubscription } from '../theme/components/mailingListSubscription/MailingListSubscription';
const NotFoundPage = (): JSX.Element => (
+
(
+
+
);
const Background = (): JSX.Element => (
<>
@@ -62,7 +69,7 @@ const Background = (): JSX.Element => (
/>
{
- {Object.keys(PAGE)
- .filter(id => id !== 'home' && id !== 'notFound')
- .map(id => (
-
-
- {capitalize(id)}
-
-
- ))}