How to use post param inside site.Data

Hi. I want to use post param inside of site.Data example like that;

title: The Purpose of Education
date: 1948-12-12 10:18:00
author: omer
tags: ["fiction", "hugo"]


{{ site.Data.authors[].name }}

I’m getting error when I try it. How can I use like how I want?

1 Like

Use the index function.

1 Like

Can u give example code for this problem?

1 Like
{{ with index site.Data.authors }}
{{ .name }}
{{ end }}