Skip to content

Commit

Permalink
Merge pull request #4898 from Mohith234/add-desc-frontmatter
Browse files Browse the repository at this point in the history
Add description prop to books, careers, integrations and workshops pages SEO
  • Loading branch information
leecalcote authored Oct 19, 2023
2 parents a45fb54 + d9023f0 commit f52faa4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/templates/book-single.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ export default BookSinglePage;


export const Head = ({ data }) => {
return <SEO title={data.mdx.frontmatter.title} image={data.mdx.frontmatter.thumbnail.publicURL} />;
return <SEO title={data.mdx.frontmatter.title} image={data.mdx.frontmatter.thumbnail.publicURL} description={data.mdx.frontmatter.abstract}/>;
};
3 changes: 2 additions & 1 deletion src/templates/career-single.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const query = graphql`
title,
type,
location,
abstract,
start_date,
duration,
salary,
Expand Down Expand Up @@ -41,5 +42,5 @@ const CareerSinglePage = ({ data }) => {
export default CareerSinglePage;

export const Head = ({ data }) => {
return <SEO title={data.mdx.frontmatter.title} />;
return <SEO title={data.mdx.frontmatter.title} description={data.mdx.frontmatter.abstract}/>;
};
2 changes: 1 addition & 1 deletion src/templates/integrations.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ const Integrations = ({ data }) => {
export default Integrations;

export const Head = ({ data }) => {
return <SEO title={data.mdx.frontmatter.title} image={data.mdx.frontmatter.integrationIcon.publicURL} />;
return <SEO title={data.mdx.frontmatter.title} image={data.mdx.frontmatter.integrationIcon.publicURL} description={data.mdx.frontmatter.subtitle}/>;
};
2 changes: 1 addition & 1 deletion src/templates/workshop-single.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ const WorkshopSingle = ({ data }) => {
export default WorkshopSingle;

export const Head = ({ data }) => {
return <SEO title={data.mdx.frontmatter.title} image={data.mdx.frontmatter.thumbnail.publicURL} />;
return <SEO title={data.mdx.frontmatter.title} image={data.mdx.frontmatter.thumbnail.publicURL} description={data.mdx.frontmatter.abstract}/>;
};

0 comments on commit f52faa4

Please sign in to comment.