fix blog seo

This commit is contained in:
Timothy 2021-01-10 14:32:35 +08:00
parent 11776b2e29
commit 07faf4dd00

View File

@ -10,21 +10,20 @@ export async function getStaticProps() {
} }
export default function Blog({ posts }) { export default function Blog({ posts }) {
return ( return (
<> <>
<NextSeo <NextSeo
title={`Blog - ${siteMetadata.name}`} title={`Blog - ${siteMetadata.author}`}
description={siteMetadata.description} description={siteMetadata.description}
canonical={`${siteMetadata.siteUrl}/blog`} canonical={`${siteMetadata.siteUrl}/blog`}
openGraph={{ openGraph={{
url: `${siteMetadata.siteUrl}/blog`, url: `${siteMetadata.siteUrl}/blog`,
title: `Blog - ${siteMetadata.name}`, title: `Blog - ${siteMetadata.author}`,
description: siteMetadata.description, description: siteMetadata.description,
}} }}
/> />
<ListLayout posts={posts} title="All Posts"/> <ListLayout posts={posts} title="All Posts" />
</> </>
) )
} }