fix rich data descriptions

This commit is contained in:
Rik Berkelder 2021-08-03 00:07:05 +02:00
parent 63d42bbd24
commit 0c1ceb63f1
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,6 @@ import logo from '../../static/logo-square-wob.png';
const MdPageTemplate: React.FC<PageProps<Query>> = ({data}) => {
const post = data.markdownRemark;
return (
<Layout>
<div className="max-w-screen-md mx-auto">
@ -32,7 +31,7 @@ const MdPageTemplate: React.FC<PageProps<Query>> = ({data}) => {
<meta name="title" content={post.frontmatter?.title} />
{post.frontmatter.description ? (
<meta name="description" content="this is the post's description" />
<meta name="description" content={post.frontmatter?.description} />
): null}
<meta name="author" content="Rik Berkelder" />
@ -65,6 +64,7 @@ export const pageQuery = graphql`
slug
date(formatString: "MMMM DD, YYYY")
title
description
}
}
}