How can I make pairs of information in the front matter?

FIgured it out. The suggestions from @digitalcraftsman above in post #6 were extremely helpful. For my solution, I put the following in the front matter of my content markdown file for that content type:

[[authors.lead]]
    name = "A"
    place = "B"
    
[[authors.lead]]
    name = "C"
    place = "D"
    
[[authors.lead]]
    name = "E"
    place = "F"

And in my single.html template for that content type:

    <ul>
        {{ range .Params.authors.lead }}
                <li>
                    <span class="person"> {{ .name }} </span><br/>
                    <span class="organization">{{ .place }}</span>
                </li>
        {{ end }}
    </ul>

Works like a charm. The TOML table syntax at first was hard to get my head around. Now just need to add about 50 more entries!

2 Likes