CMSgov / design-system

Open source design and front-end development resources for creating Section 508 compliant, responsive, and consistent websites.
https://design.cms.gov
Other
312 stars 85 forks source link

[WNMGDS-2709] Implement open graph tags #3169

Closed zarahzachz closed 1 month ago

zarahzachz commented 1 month ago

WNMGDS-2709

Added OpenGraph tags to the docs site. If the page is classified as "not in sidebar," I've taken that to mean the page link title and description should default to generic "website" text (like the home or contact pages). If the page is in the sidebar, it's a real page with usable frontmatter (like components and blog posts).

This OG work is meant to be a first draft and may need further adjustments in the future, we're just proving out what this could look like on our docs site. What does this mean? Well the generic copy I use for the "website" pages (and my definition of "website" pages for that matter) could use more input from the team and/or Patty (or whoever does copywriting). Additionally. we don't have an image to use on the required og:image tag (the DS doesn't have a proper logo or any associated imagery, so what would this even be? To be decided by the team and/or Melissa?).

Demo url