[site,seo][xs]: add custom _document with lang prop, add description to meta tags, make title larger
This commit is contained in:
parent
349f5bea66
commit
11a4272f16
@ -1,5 +1,5 @@
|
||||
const config = {
|
||||
title: 'PortalJS',
|
||||
title: 'PortalJS - The JavaScript framework for data portals.',
|
||||
description:
|
||||
'PortalJS is a framework for rapidly building rich data portal frontends using a modern frontend approach. PortalJS can be used to present a single dataset or build a full-scale data catalog/portal.',
|
||||
theme: {
|
||||
|
||||
@ -47,7 +47,11 @@ function MyApp({ Component, pageProps }) {
|
||||
defaultTheme={siteConfig.theme.default}
|
||||
forcedTheme={siteConfig.theme.default ? null : 'light'}
|
||||
>
|
||||
<DefaultSeo defaultTitle={siteConfig.title} {...siteConfig.nextSeo} />
|
||||
<DefaultSeo
|
||||
defaultTitle={siteConfig.title}
|
||||
description={siteConfig.description}
|
||||
{...siteConfig.nextSeo}
|
||||
/>
|
||||
|
||||
{/* Global Site Tag (gtag.js) - Google Analytics */}
|
||||
{siteConfig.analytics && (
|
||||
|
||||
13
site/pages/_document.tsx
Normal file
13
site/pages/_document.tsx
Normal file
@ -0,0 +1,13 @@
|
||||
import { Html, Head, Main, NextScript } from 'next/document';
|
||||
|
||||
export default function Document() {
|
||||
return (
|
||||
<Html lang="en">
|
||||
<Head />
|
||||
<body>
|
||||
<Main />
|
||||
<NextScript />
|
||||
</body>
|
||||
</Html>
|
||||
);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user