I want to build a big hugo site with multiple authors (more than 10,000 authors). Each author has unique ID but some could have the same name. All the articles I saw are only using name to distinguish authors. Is it possible for hugo to have both author id and author display name?
Yes.
config.toml
[taxonomies]
author = "authors"
content/book/murder-on-the-orient-express.md
+++
title = "Murder on the Orient Express"
date = 2021-03-14T09:57:45-07:00
draft = false
authors = ["00001"]
+++
content/authors/00001/_index.md
+++
title = "Agatha Christie"
date = 2021-03-14T09:49:27-07:00
draft = false
+++
EDIT: Pluralized “author” to “authors” because some books/articles have multiple authors.
Thanks for the code! Together with some other changes such as
{{ $author := index .Site.Data.authors .Params.author }}
{{ $author.name }}
It works now. Hugo is excellent!
Ref: Manage Multiple Authors On A Static Blog Created With Hugo
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.