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

[Question] Multiple authors config #367

Closed
OCram85 opened this issue Jun 15, 2018 · 10 comments
Closed

[Question] Multiple authors config #367

OCram85 opened this issue Jun 15, 2018 · 10 comments

Comments

@OCram85
Copy link
Contributor

OCram85 commented Jun 15, 2018

Hi Dean,
what do you think about extending the authors feature ?

Current state

It's possible to define one author and his details in the config.yml.

Possible Change

Extend the author config to work with more data (avatar link, name, description ... ) and multiple authors

How could this be done?

  • Either stick with one author in the config.yml
  • Using another file like authors.yml and define the data there 🗡️
  • Pickup the author in the front matter section
  • author details could be displayed in a post footer

Surplus

  • beatuiful-jekyll could easily be used for sites with multiple contributors.
  • This feature should be optional
@daattali
Copy link
Owner

I'm not sure if you mean:
a) multiple authors for a single post, or
b) just supporting having a different author for different posts, or
c) multiple authors in the footer of the page

Case b) is something that several people have asked me about and I would happily support (it's already very easy to do it). Which one do you mean?

@OCram85
Copy link
Contributor Author

OCram85 commented Jun 17, 2018

Hi Dean,

I tried to explain scenario b. 😃

@daattali
Copy link
Owner

In that case, one very simple option is to just support an author param in a page YAML, without a need to change the config or to add another file. Do you think a more complex solution is needed?

@OCram85
Copy link
Contributor Author

OCram85 commented Jun 18, 2018

You're right. simple yaml definition in the front matter part should do it. Maybe an additional global setup if you simple want to select the author in the page's yaml part like this:

Example page / post

author: "OCram85"

_config.yml

authors:
  OCram85:
    name: "OCram85"
    avatar: "/path/to/image.jpg"
    additional_params: ""
  daattali:
    name: "Dean"
    avatar: "/path/to/image2.jpg"
    additional_params: ""

@daattali
Copy link
Owner

daattali commented Jun 18, 2018 via email

@OCram85
Copy link
Contributor Author

OCram85 commented Jun 19, 2018

I think it depends on whatever you would like to display. As you said, maybe an url, maybe a short description, avatar (picture path),...
Additionally it also depends on the where you would like to display the information. I'm thinking of adding a footer section, or maybe a simple include snippet which could easily added by other users when needed.

@daattali
Copy link
Owner

daattali commented Jun 19, 2018 via email

@OCram85
Copy link
Contributor Author

OCram85 commented Jun 20, 2018

Maybe we should create a fork in @jekyll-collective and implement more complex / advanced stuff 😄

@daattali
Copy link
Owner

daattali commented Jun 20, 2018 via email

@daattali
Copy link
Owner

Closing this as I decided not to implement this feature

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

No branches or pull requests

2 participants