-
Notifications
You must be signed in to change notification settings - Fork 982
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Community award badge and meta descriptions (#4567)
## What are you changing in this pull request and why? Currently on the live site, the meta descriptions for individual spotlight member pages pull from the `description` field in the frontmatter as-is, causing the meta descriptions to be long and have HTML within it: ![image](https://github.com/dbt-labs/docs.getdbt.com/assets/13647110/266c7c9a-c07b-467a-8fbb-2d4c4b8bc766) This adjusts the meta descriptions for spotlight member pages, to strip HTML from the meta descriptions and set a max length of 130 characters. This also adds frontmatter field `communityAward` to add an award badge above spotlight member cards. This field is a `boolean` which can be set in individual spotlight member files. ## Preview View the award badges for the top two spotlight members on the index page: https://docs-getdbt-com-git-community-award-badge-dbt-labs.vercel.app/community/spotlight/ Verify meta `description` and `og:description` fields are set for individual spotlight member pages. You can also paste these in a message to yourself in Slack to see the social card: https://docs-getdbt-com-git-community-award-badge-dbt-labs.vercel.app/community/spotlight/karen-hsieh https://docs-getdbt-com-git-community-award-badge-dbt-labs.vercel.app/community/spotlight/josh-devlin https://docs-getdbt-com-git-community-award-badge-dbt-labs.vercel.app/community/spotlight/alan-cruickshank https://docs-getdbt-com-git-community-award-badge-dbt-labs.vercel.app/community/spotlight/emily-riederer ## Checklist - [x] Remove `communityAward` field from two spotlight member files used for an example in this PR
- Loading branch information
Showing
3 changed files
with
105 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters