From c3b438a5252e8c8897c868cdda8377e3162fdd69 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Thu, 6 Jan 2022 18:15:18 +0100
Subject: refactor: reuse PostHeader for all pages except homepage

---
 src/pages/blog/index.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/pages/blog/index.tsx')

diff --git a/src/pages/blog/index.tsx b/src/pages/blog/index.tsx
index 095af72..2a58571 100644
--- a/src/pages/blog/index.tsx
+++ b/src/pages/blog/index.tsx
@@ -11,6 +11,7 @@ import PostsList from '@components/PostsList/PostsList';
 import useSWRInfinite from 'swr/infinite';
 import { Button } from '@components/Buttons';
 import { getPublishedPosts } from '@services/graphql/queries';
+import PostHeader from '@components/PostHeader/PostHeader';
 
 const Blog: NextPageWithLayout<BlogPageProps> = ({ fallback }) => {
   const getKey = (pageIndex: number, previousData: PostsListData) => {
@@ -46,7 +47,7 @@ const Blog: NextPageWithLayout<BlogPageProps> = ({ fallback }) => {
         <title>{seo.blog.title}</title>
         <meta name="description" content={seo.blog.description} />
       </Head>
-      <h1>{t`Blog`}</h1>
+      <PostHeader title={t`Blog`} />
       <PostsList data={data} showYears={true} />
       {hasNextPage && (
         <Button
-- 
cgit v1.2.3

