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

Multiple authors for a post #3252

Closed
certik opened this issue Apr 14, 2019 · 9 comments
Closed

Multiple authors for a post #3252

certik opened this issue Apr 14, 2019 · 9 comments
Assignees

Comments

@certik
Copy link

certik commented Apr 14, 2019

Currently one can specify a single author of a post using the author metadata field.

For post authored by multiple authors, there currently does not seem to be a way to specify that.

@ralsina
Copy link
Member

ralsina commented Aug 5, 2019

Sorry about taking so long to acknowledge this issue, I have been busy.

This is a reasonable request, let's look into it a bit more:

  • 👍 Metadata is arbitrary, you can add a "authors" field if you want
  • 👎 It's better if we standardize how that field would look
  • 👎 It's not supported in the default templates. Do you know of any site using multiple authors per post and like how it looks?
  • 👍 There is support for multiple authors in docutils if we used document's metadata (no idea how well that works)

So, let's talk about it.

@certik
Copy link
Author

certik commented Aug 5, 2019

I switched to Hugo, so here is an example of my blog post:

https://lfortran.org/blog/2019/04/why-we-created-lfortran/

You can see multiple people in the authors section, and here is how I did it:

https://gitlab.com/lfortran/web/www.lfortran.org/blob/66157184d69b01c57a576061e1c8b608c85539a5/content/blog/why-we-created-lfortran.md#L5

So perhaps Hugo thinks it's just one author, but I don't mind, as long as it looks good online.

@ralsina ralsina closed this as completed Aug 5, 2019
@ralsina
Copy link
Member

ralsina commented Aug 5, 2019 via email

@certik
Copy link
Author

certik commented Aug 5, 2019

Perfect!

@fadelkon
Copy link

Hey, sorry to comment on a closed issue, but the current solution does not work for me.
In a shared blog, where there is more than one person writing, and sometimes or often, the entries are co-authored, then, the /authors special page is not useful. The simplest case:

Ann: how to code in fortran
Ben: using jupyter notebook
Ann & Ben: exploring LFrotran together

Then, I expect that in authors/ann and in authors/ben, there are 2 articles in each.
Is this something that I could change from a template?

@ralsina
Copy link
Member

ralsina commented Aug 29, 2020 via email

@fadelkon
Copy link

fadelkon commented Aug 29, 2020

I understand this, but how can I do it so that I can have "author pages" that for each author, the "shared posts" are credited to each author?

If I used author2, then author page will miss the post.

In the other hand, if I populate author with Ann & Ben and interpret it from my template so that it shows pretty, still, the author pages index will show Ann, Ben and Ann & Ben. I don't want to create "combination authors" like that. I only want 2 authors, Ann and Ben. In my case, we are more than 2 authors, and the possible combinations are too many.

EDIT:
I've been reading the source code and understand that it's explicitly not supported.

more_than_one_classifications_per_post = False

How many pieces should I copy If I wanted to create a modified copy of the authors classifier into, let's say, some multiple_authors one? I imagine it that it would read an hypothetical "authors" field (in plural), or just use "author" and replace the current classifier, via a config option.

EDIT2:

To be clear: with "author pages" or "author index" I am referring to this feature:

# If ENABLE_AUTHOR_PAGES is set to True and there is more than one
# author, author pages are generated.
ENABLE_AUTHOR_PAGES = True

@ralsina
Copy link
Member

ralsina commented Aug 30, 2020 via email

@Kwpolska
Copy link
Member

Kwpolska commented Sep 5, 2020

I tried to solve this, and it’s a fairly easy fix (that can be backwards-compatible). See PR #3456 (please test and review).

Kwpolska added a commit that referenced this issue Nov 6, 2020
Fix #3252 — add MULTIPLE_AUTHORS_PER_POST support
devilgate pushed a commit to devilgate/nikola that referenced this issue Nov 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants