Skip to content

Standardize Authors/Bylines #8

Description

@asg017

Right now, you say which authors contributing to an article with a post's metadata, like so:

export const meta = {
    authors: [
        {name: "Alex Garcia", github: "asg017"},
        {name: "Chau Vu", github: "cqvu"},
    ],
    // other metadata here
}

Then, in TutorialLayout, we use the Github API to other metadata like the person's Github profile pic and maybe other stuff.

It may be kindof tiring to type in {name: "Alex Garcia", github: "asg017"} everytime. So maybe we can have a "database" of authors that we can key into with just a github username. Like:

// authors.js
export const authors = {
    "asg017": {
        name: "Alex Garcia", 
        major: "Computer Engineering", 
        classof: 2019, 
        college: "Revelle"
    },
  "cqvu": {
        name: "Chau Vu", 
        major: "Computer Engineering", 
        classof: 2020, 
        college: "Warren" // I think?
    },
}

Then, in every tutorial post, you only need to supply your Github username, and we can handle the rest, like so:

export const meta = {
    authors: ['asg017', 'cqvu'],
   // other fields here
}

One problem with this is that we would need to add to the "database" everytime a new author writes a new tutorial. But, I think asking them to add themselves into the "database" isn't too difficult and probably won't discourage people from writing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions