From 11f3654f1e40b154a789bcf7204ca4363bca3b86 Mon Sep 17 00:00:00 2001 From: keyan Date: Wed, 7 Jul 2021 19:34:23 -0500 Subject: [PATCH] don't do seo until we load items --- components/layout.js | 4 ++-- pages/[username].js | 2 +- pages/[username]/comments.js | 2 +- pages/items/[id].js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/layout.js b/components/layout.js index 7a19ccf8..ae4983b9 100644 --- a/components/layout.js +++ b/components/layout.js @@ -5,10 +5,10 @@ import { LightningProvider } from './lightning' import Footer from './footer' import Seo from './seo' -export default function Layout ({ noContain, noFooter, children }) { +export default function Layout ({ noContain, noFooter, noSeo, children }) { return ( <> - + {!noSeo && } diff --git a/pages/[username].js b/pages/[username].js index b43ded2e..e7e8db9c 100644 --- a/pages/[username].js +++ b/pages/[username].js @@ -36,7 +36,7 @@ export async function getServerSideProps ({ req, params }) { export default function User ({ user }) { return ( - + diff --git a/pages/[username]/comments.js b/pages/[username]/comments.js index 721ee8f0..c195b200 100644 --- a/pages/[username]/comments.js +++ b/pages/[username]/comments.js @@ -36,7 +36,7 @@ export async function getServerSideProps ({ req, params }) { export default function UserComments ({ user }) { return ( - + diff --git a/pages/items/[id].js b/pages/items/[id].js index 91479c97..555efc3d 100644 --- a/pages/items/[id].js +++ b/pages/items/[id].js @@ -33,7 +33,7 @@ export default function FullItem ({ id }) { }` return ( - + )