diff --git a/components/layout/Layout.js b/components/layout/Layout.js index 18a8fc2017..3b68a58173 100644 --- a/components/layout/Layout.js +++ b/components/layout/Layout.js @@ -1,21 +1,13 @@ import React from 'react'; import Head from 'next/head'; -import { useRouter } from 'next/router'; import Header from 'components/layout/Header'; import Footer from 'components/layout/Footer'; export default function Layout({ title, children, header = true, footer = true }) { - const { basePath } = useRouter(); - return ( <> umami{title && ` - ${title}`} - - {header &&
}
{children}
diff --git a/pages/_app.js b/pages/_app.js index cf4cb24c0f..713270590f 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -31,12 +31,17 @@ export default function App({ Component, pageProps }) { return ( + +