[site,seo][xs]: add custom _document with lang prop, add description to meta tags, make title larger
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
const config = {
|
const config = {
|
||||||
title: 'PortalJS',
|
title: 'PortalJS - The JavaScript framework for data portals.',
|
||||||
description:
|
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.',
|
'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: {
|
theme: {
|
||||||
|
|||||||
@@ -47,7 +47,11 @@ function MyApp({ Component, pageProps }) {
|
|||||||
defaultTheme={siteConfig.theme.default}
|
defaultTheme={siteConfig.theme.default}
|
||||||
forcedTheme={siteConfig.theme.default ? null : 'light'}
|
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 */}
|
{/* Global Site Tag (gtag.js) - Google Analytics */}
|
||||||
{siteConfig.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>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user