From 70b4f633a6fbedb58c8b9134ac64ede854d489de Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 20 Nov 2023 12:27:46 +0100 Subject: refactor(components): replace PageLayout template with Page * split pages in smaller components (it is both easier to maintain and more readable, we avoid the use of fragments in pages directory) * extract breadcrumbs from article tag (the navigation is not related to the page contents) * remove useReadingTime hook * remove layout options except `isHome` --- src/pages/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/pages/index.tsx') diff --git a/src/pages/index.tsx b/src/pages/index.tsx index d708ac5..81883fc 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -438,8 +438,7 @@ const HomePage: NextPageWithLayout = ({ recentPosts }) => { ); }; -HomePage.getLayout = (page) => - getLayout(page, { isHome: true, withExtraPadding: false }); +HomePage.getLayout = (page) => getLayout(page, { isHome: true }); export const getStaticProps: GetStaticProps = async ({ locale }) => { const translation = await loadTranslation(locale); -- cgit v1.2.3