You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
within my index.js "getStaticProps" function, the const {data:frontmatter}=matter(markdownWIthMeta)
is returning
{
slug: 'test',
frontmatter: "title:Test Post date:'June 28 2021' excerpt:'This is the excerpt' cover_image:'images/posts/img1.jpg'"
}
and I cannot seem to get access to the title, date etc. as frontmatter is a string.
The text was updated successfully, but these errors were encountered:
within my index.js "getStaticProps" function, the const {data:frontmatter}=matter(markdownWIthMeta)
is returning
{
slug: 'test',
frontmatter: "title:Test Post date:'June 28 2021' excerpt:'This is the excerpt' cover_image:'images/posts/img1.jpg'"
}
and I cannot seem to get access to the title, date etc. as frontmatter is a string.
The text was updated successfully, but these errors were encountered: