use next-seo on index page
This commit is contained in:
1 parent
d44db287de
commit
7581e23366
1 file changed
+38
-18
+38
-18
@@ -1,6 +1,6 @@
|
|||||||
import Head from "next/head"
|
import Head from "next/head"
|
||||||
import { App } from "src/components/App"
|
import { App } from "src/components/App"
|
||||||
import { Meta } from "src/components/Meta"
|
import { NextSeo } from "next-seo"
|
||||||
import { PageGrid } from "src/components/PageGrid"
|
import { PageGrid } from "src/components/PageGrid"
|
||||||
import { HudozkaTitle } from "src/components/HudozkaTitle"
|
import { HudozkaTitle } from "src/components/HudozkaTitle"
|
||||||
import { MetaBuilder } from "src/lib/meta"
|
import { MetaBuilder } from "src/lib/meta"
|
||||||
@@ -17,26 +17,46 @@ type Props = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const Index: NextPage<Props> = props => (
|
const Index: NextPage<Props> = props => (
|
||||||
<App
|
<>
|
||||||
showAuthor={true}
|
<NextSeo
|
||||||
menu={props.menu}
|
title={props.meta.title}
|
||||||
>
|
description={props.meta.description}
|
||||||
<Head>
|
canonical="https://art.shlisselburg.org/"
|
||||||
<title>{props.title}</title>
|
openGraph={{
|
||||||
<Meta meta={props.meta} />
|
url: props.meta.url,
|
||||||
</Head>
|
title: props.meta.title,
|
||||||
|
description: props.meta.description,
|
||||||
<HudozkaTitle
|
images: [
|
||||||
style={{
|
{
|
||||||
marginTop: "var(--size-m)",
|
url: props.meta.image,
|
||||||
marginBottom: "var(--size-m)",
|
width: props.meta.imageWidth,
|
||||||
|
height: props.meta.imageHeight,
|
||||||
|
alt: props.meta.description,
|
||||||
|
type: "image/jpeg",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
site_name: props.meta.siteName,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
<Head>
|
||||||
|
<title>{props.title}</title>
|
||||||
|
</Head>
|
||||||
|
<App
|
||||||
|
showAuthor={true}
|
||||||
|
menu={props.menu}
|
||||||
|
>
|
||||||
|
<HudozkaTitle
|
||||||
|
style={{
|
||||||
|
marginTop: "var(--size-m)",
|
||||||
|
marginBottom: "var(--size-m)",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
<PageGrid
|
<PageGrid
|
||||||
items={props.items}
|
items={props.items}
|
||||||
/>
|
/>
|
||||||
</App>
|
</App>
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
|
|
||||||
export const getStaticProps: GetStaticProps<Props> = async () => {
|
export const getStaticProps: GetStaticProps<Props> = async () => {
|
||||||
|
|||||||
Reference in new issue
Block a user