I have maintained an authors.json file inside of the data folder in my Hugo setup which contains an object of author details which looks something like this
{
"john_doe":{
"name":"john_doe",
"github":"john_doe",
"description":"Some Sample Description"
}
}
Now, on the template side I want to access the details in the john_doe property. I tried doing something like
{{.Site.Data.authors[name]}}
But this doesn't seem to work. Please can anyone help?