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 MdPageTemplate: React.FC<PageProps<Query>> = ({data}) => {
|
||||||
|
|
||||||
const post = data.markdownRemark;
|
const post = data.markdownRemark;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout>
|
||||||
<div className="max-w-screen-md mx-auto">
|
<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} />
|
<meta name="title" content={post.frontmatter?.title} />
|
||||||
{post.frontmatter.description ? (
|
{post.frontmatter.description ? (
|
||||||
<meta name="description" content="this is the post's description" />
|
<meta name="description" content={post.frontmatter?.description} />
|
||||||
): null}
|
): null}
|
||||||
<meta name="author" content="Rik Berkelder" />
|
<meta name="author" content="Rik Berkelder" />
|
||||||
|
|
||||||
|
@ -65,6 +64,7 @@ export const pageQuery = graphql`
|
||||||
slug
|
slug
|
||||||
date(formatString: "MMMM DD, YYYY")
|
date(formatString: "MMMM DD, YYYY")
|
||||||
title
|
title
|
||||||
|
description
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue