fix rich data descriptions
This commit is contained in:
parent
63d42bbd24
commit
0c1ceb63f1
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue