Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ’„βœ¨ Add Co-Author field to Blog Posts #2176

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

joshbermanssw
Copy link
Contributor

@joshbermanssw joshbermanssw commented Sep 11, 2024

As per #2107 we wanted to be able to acknowledge users when they are also 'checking' blog posts (as this can sometimes be a lengthy process πŸ˜…)

Changes:

  • Added a string list called co-Authors to the blog schema
  • Added the co-author field to the getExpandedBlogPosts gql query
  • Rendered the co-authors field on both the page-index.tsx file and [slug].tsx file for blogs
Screenshot 2024-09-11 at 12 12 58β€―PM 1

Figure: πŸ“„ Co-authors displayed on a blog post

Screenshot 2024-09-11 at 12 28 35β€―PM

Figure: πŸ“„ Co-authors displayed on minimised blog post /blog page

@joshbermanssw joshbermanssw requested a review from a team as a code owner September 11, 2024 02:33
Copy link

vercel bot commented Sep 11, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
tina-io ❌ Failed (Inspect) Sep 11, 2024 2:40am

@@ -3,13 +3,16 @@ title: TinaCMS sponsoring the Copenhagen Developers Festival
date: '2024-08-13T14:00:00.000Z'
last_edited: '2024-08-13T14:00:00.000Z'
author: Landon Maxwell
coAuthors:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coauthors is one word, sometimes hypenated

Suggested change
coAuthors:
coauthors:

or

Suggested change
coAuthors:
co_authors:

@@ -43,6 +43,12 @@ export const blogsCollection = {
name: 'author',
label: 'Author',
},
{
type: 'string',
name: 'coAuthors',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

@@ -13,6 +13,7 @@ query getExpandedPostDocument($relativePath: String!) {
date
last_edited
author
coAuthors
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

@joshbermanssw joshbermanssw marked this pull request as draft September 16, 2024 05:49
@joshbermanssw
Copy link
Contributor Author

awaiting designer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants