Support multiple authors or co-authors
Closed this issue · 2 comments
wfernandes commented
Could we specify a co-author with the blog author. So their name shows up at the top as well.
tammersaleh commented
Yeah, I think that'd be possible. The author snippet is here:
{{ with (index .Site.Data.authors (lower .Params.author)) }}
by
<a href="https://twitter.com/{{ index . "Twitter" }}">
{{ index . "Name" }}
</a>
{{ end }}
It references the files in /data/authors/ using the author
key in the header. I think you'd have to change that author
key to be an array (it's just yaml), and then change the snippet to deal with either single or multiple authors.
I'd gladly pull in such a PR, but it's not something I've got time to do, myself.
wfernandes commented
Closing this issue since PR was merged in here