From a98da0e37b5df852812b769a4afdc1a5c35c83e9 Mon Sep 17 00:00:00 2001 From: Mohith234 Date: Thu, 7 Sep 2023 11:05:20 +0530 Subject: [PATCH] added description prop to blog and resource templates Signed-off-by: Mohith234 --- src/templates/blog-single.js | 3 ++- src/templates/resource-single.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/templates/blog-single.js b/src/templates/blog-single.js index a0cc07055f98..65d7cd218843 100644 --- a/src/templates/blog-single.js +++ b/src/templates/blog-single.js @@ -15,6 +15,7 @@ export const query = graphql`query BlogsBySlug($slug: String!) { frontmatter { title subtitle + description date(formatString: "MMMM Do, YYYY") author category @@ -62,5 +63,5 @@ export default BlogSinglePage; export const Head = ({ data }) => { - return ; + return ; }; \ No newline at end of file diff --git a/src/templates/resource-single.js b/src/templates/resource-single.js index bcc776471b25..96cb6675ae17 100644 --- a/src/templates/resource-single.js +++ b/src/templates/resource-single.js @@ -19,6 +19,7 @@ export const query = graphql`query ResourcesBySlug($slug: String!) { author category tags + description thumbnail { childImageSharp { gatsbyImageData(width: 500, layout: CONSTRAINED) @@ -54,5 +55,5 @@ const ResourceSinglePage = ({ data }) => { export default ResourceSinglePage; export const Head = ({ data }) => { - return ; + return ; }; \ No newline at end of file