Multiple authors in TOML?

The hasper theme examples are written in YAML. Here is one example:

author:
  david:
    name: "David Hasselhoff"
    bio: "Don't Hassle the Hoff"
    location: "Baltimore, MD"
    thumbnail: "images/avatar.jpg"
  pamela:
    name: "Pamela Anderson"
    bio: "Little known fact, I am vegan"
    location: "Canada"
    thumbnail: "images/pamela.jpg"

What is the corresponding TOML? I tried a number of things, but none of them seemed to work, and the TOML repo wasn’t helpful either. :frowning:

Jack.

@mathuin Does this give you your answer?

https://github.com/toml-lang/toml#array-of-tables

Shooting from the hip (not tested)…

[[authors]]
   [author]
     name = "David Hasselhoff"
     bio = "Don't hassle the Hoff."
     location = "Baltimore, MD"
     thumbnail = "images/avatar.jpg"
   [author]
     name = "Pamela Anderson"
     bio = "Little known fact, I am vegan"
     location = "Canada"

I know nothing of your site, but maybe following this PR will provide some utility for you in future versions:

https://github.com/spf13/hugo/pull/1850

Your example did not work for me, but after a lot of tinkering, I came up with this example which did:

[author.david]
name = "David Hasselhoff"
bio = "Don't hassle the Hoff."
location = "Baltimore, MD"
thumbnail = "images/avatar.jpg"
[author.pamela]
name = "Pamela Anderson"
bio = "Little known fact, I am vegan"
location = "Canada"

This is different than the menu fix, which looks like this:
[[menu.main]]
name = "Blog"
weight = -120
identifier = "blog"
url = “/”
[[menu.main]]
name = "About"
weight = -110
identifier = "about"
url = "/about"
No, I don’t know why. :slightly_smiling:

Jack.

@mathuin How did you range through this solution?

@rdwatters I do not understand your question, can you please rephrase?