From 225d855a385fe106ceb0dfbffda51353b8cf2e01 Mon Sep 17 00:00:00 2001 From: Rachel Date: Tue, 4 Feb 2025 14:24:25 -0600 Subject: [PATCH] Fix meta descriptions (#9399) * Fix meta desc for cert pages and update meta desc for release note pages * Apply Prettier formatting * use node.excerpt * pull excerpt from gatsby and use that to create meta description - adds `excerpt` to the GraphQL query - uses this excerpt to create a contextual meta description - falls back to "A summary of changes to the Pantheon Platform" if excerpt could not be extracted. * Apply Prettier formatting * Update source/content/certification/study-guide-cms/10-custom-upstreams.md Co-authored-by: Steve Persch * Update source/content/certification/study-guide-cms/09-automate.md Co-authored-by: Steve Persch * Update source/content/certification/study-guide-cms/07-people.md Co-authored-by: Steve Persch * Update source/content/certification/study-guide-cms/08-extend.md Co-authored-by: Steve Persch * Update source/content/certification/study-guide-cms/06-deploy.md Co-authored-by: Steve Persch * Update source/content/certification/study-guide-cms/05-cms.md Co-authored-by: Steve Persch * Update source/content/certification/study-guide-cms/04-cdn.md Co-authored-by: Steve Persch * Update source/content/certification/study-guide-cms/03-create.md Co-authored-by: Steve Persch --------- Co-authored-by: Chris Reynolds Co-authored-by: Steve Persch --- source/content/certification/study-guide-cms/00-intro.md | 1 + source/content/certification/study-guide-cms/01-webops.md | 1 + .../content/certification/study-guide-cms/02-platform.md | 1 + source/content/certification/study-guide-cms/03-create.md | 1 + source/content/certification/study-guide-cms/04-cdn.md | 1 + source/content/certification/study-guide-cms/05-cms.md | 1 + source/content/certification/study-guide-cms/06-deploy.md | 1 + source/content/certification/study-guide-cms/07-people.md | 1 + source/content/certification/study-guide-cms/08-extend.md | 1 + .../content/certification/study-guide-cms/09-automate.md | 1 + .../certification/study-guide-cms/10-custom-upstreams.md | 1 + src/templates/certificationpage.js | 4 +++- src/templates/releaseNotePage.js | 7 ++++++- 13 files changed, 20 insertions(+), 2 deletions(-) diff --git a/source/content/certification/study-guide-cms/00-intro.md b/source/content/certification/study-guide-cms/00-intro.md index f4eeebfb59..437ca3b87a 100644 --- a/source/content/certification/study-guide-cms/00-intro.md +++ b/source/content/certification/study-guide-cms/00-intro.md @@ -1,6 +1,7 @@ --- title: WebOps Certification subtitle: Study Guide Introduction +description: Learn about the three failure modes of website operations. certificationpage: true type: certificationpage layout: certificationpage diff --git a/source/content/certification/study-guide-cms/01-webops.md b/source/content/certification/study-guide-cms/01-webops.md index 7fb0bcff54..186a20f423 100644 --- a/source/content/certification/study-guide-cms/01-webops.md +++ b/source/content/certification/study-guide-cms/01-webops.md @@ -1,6 +1,7 @@ --- title: WebOps Certification subtitle: "Chapter 1: WebOps" +description: Learn about the principles and benefits of WebOps. certificationpage: true showtoc: true type: certificationpage diff --git a/source/content/certification/study-guide-cms/02-platform.md b/source/content/certification/study-guide-cms/02-platform.md index 0c5d2986db..f0a4fd2d73 100644 --- a/source/content/certification/study-guide-cms/02-platform.md +++ b/source/content/certification/study-guide-cms/02-platform.md @@ -1,6 +1,7 @@ --- title: WebOps Certification subtitle: "Chapter 2: Pantheon Platform" +description: Understand the layers of Pantheon's platform and how it can be used to solve problems using WebOps best practicies. certificationpage: true showtoc: true type: certificationpage diff --git a/source/content/certification/study-guide-cms/03-create.md b/source/content/certification/study-guide-cms/03-create.md index 0b15e66d0f..f31e4d43f1 100644 --- a/source/content/certification/study-guide-cms/03-create.md +++ b/source/content/certification/study-guide-cms/03-create.md @@ -1,6 +1,7 @@ --- title: WebOps Certification subtitle: "Chapter 3: Site Creation" +description: Learn how to create a site on Pantheon. certificationpage: true showtoc: true type: certificationpage diff --git a/source/content/certification/study-guide-cms/04-cdn.md b/source/content/certification/study-guide-cms/04-cdn.md index 6b703a9501..0659fb2083 100644 --- a/source/content/certification/study-guide-cms/04-cdn.md +++ b/source/content/certification/study-guide-cms/04-cdn.md @@ -1,6 +1,7 @@ --- title: WebOps Certification subtitle: "Chapter 4: Content Delivery Network" +description: Pantheon's edge layer increases the speed and scalability of all sites on the platform. The Advanced Global CDN can be customized for tailored usage. certificationpage: true type: certificationpage layout: certificationpage diff --git a/source/content/certification/study-guide-cms/05-cms.md b/source/content/certification/study-guide-cms/05-cms.md index 1aaf769c1b..0ac100e543 100644 --- a/source/content/certification/study-guide-cms/05-cms.md +++ b/source/content/certification/study-guide-cms/05-cms.md @@ -1,6 +1,7 @@ --- title: WebOps Certification subtitle: "Chapter 5: CMS Infrastructure" +description: Pantheon's containerized infrastructure makes CMS applications faster, more scalable, and more secure. certificationpage: true type: certificationpage layout: certificationpage diff --git a/source/content/certification/study-guide-cms/06-deploy.md b/source/content/certification/study-guide-cms/06-deploy.md index 963610da3e..3fbeec74d2 100644 --- a/source/content/certification/study-guide-cms/06-deploy.md +++ b/source/content/certification/study-guide-cms/06-deploy.md @@ -1,6 +1,7 @@ --- title: WebOps Certification subtitle: "Chapter 6: The Deployment Pipeline" +description: Learn about the deployment pipeline for CMS Sites on Pantheon as it relates to code, files, and databases. certificationpage: true type: certificationpage layout: certificationpage diff --git a/source/content/certification/study-guide-cms/07-people.md b/source/content/certification/study-guide-cms/07-people.md index bf48a95c8d..1e888b3ae3 100644 --- a/source/content/certification/study-guide-cms/07-people.md +++ b/source/content/certification/study-guide-cms/07-people.md @@ -1,6 +1,7 @@ --- title: WebOps Certification subtitle: "Chapter 7: Connecting People" +description: Learn how to manage teams, workspaces and permissions before connecting DNS. certificationpage: true type: certificationpage layout: certificationpage diff --git a/source/content/certification/study-guide-cms/08-extend.md b/source/content/certification/study-guide-cms/08-extend.md index c50634bca6..917062c8fd 100644 --- a/source/content/certification/study-guide-cms/08-extend.md +++ b/source/content/certification/study-guide-cms/08-extend.md @@ -1,6 +1,7 @@ --- title: WebOps Certification subtitle: "Chapter 8: Extend with CLI and Hooks" +description: "Terminus and Quicksilver can work together to help facilitate complex WebOps workflows" certificationpage: true type: certificationpage layout: certificationpage diff --git a/source/content/certification/study-guide-cms/09-automate.md b/source/content/certification/study-guide-cms/09-automate.md index c6e2f71afd..7e7dc30773 100644 --- a/source/content/certification/study-guide-cms/09-automate.md +++ b/source/content/certification/study-guide-cms/09-automate.md @@ -1,6 +1,7 @@ --- title: WebOps Certification subtitle: "Chapter 9: Additional Automation" +description: "Learn how to leverage Integrated Composer and Autopilot" certificationpage: true type: certificationpage layout: certificationpage diff --git a/source/content/certification/study-guide-cms/10-custom-upstreams.md b/source/content/certification/study-guide-cms/10-custom-upstreams.md index 47d2598615..a9591517f8 100644 --- a/source/content/certification/study-guide-cms/10-custom-upstreams.md +++ b/source/content/certification/study-guide-cms/10-custom-upstreams.md @@ -1,6 +1,7 @@ --- title: WebOps Certification subtitle: "Chapter 10: Custom Upstreams" +description: "Understand the relationship between Pantheon’s Core Upstreams, Custom Upstreams, and individual site repositories." certificationpage: true type: certificationpage layout: certificationpage diff --git a/src/templates/certificationpage.js b/src/templates/certificationpage.js index 11de2e8820..60f8d70d73 100644 --- a/src/templates/certificationpage.js +++ b/src/templates/certificationpage.js @@ -36,7 +36,9 @@ class CertificationTemplate extends React.Component { @@ -94,6 +98,7 @@ export const pageQuery = graphql` query ReleaseNoteBySlug($slug: String!) { mdx(fields: { slug: { eq: $slug } }) { ...theReleaseNoteFields + excerpt } } `;