Use deconstructed slug

This commit is contained in:
Aloïs de Gouvello 2021-06-22 22:15:05 +02:00 committed by GitHub
parent 5603b0e236
commit e68f6c38b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ export default function PostLayout({ children, frontMatter, next, prev }) {
return (
<SectionContainer>
<BlogSeo url={`${siteMetadata.siteUrl}/blog/${frontMatter.slug}`} {...frontMatter} />
<BlogSeo url={`${siteMetadata.siteUrl}/blog/${slug}`} {...frontMatter} />
<article>
<div className="xl:divide-y xl:divide-gray-200 xl:dark:divide-gray-700">
<header className="pt-6 xl:pb-6">