{{ $dataFile := "" }}
{{ with .Params.dataFile }}
{{ $dataFile = index .Site.Data.shows . }}
{{ end }}
<h1>{{ $dataFile.title }}</h1>
then i get an error:
Failed to render "/shows/donut/":
Failed to render pages: render of "section" failed: execute of template failed: template: shows/list.html:8:30: executing "shows/list.html" at <.Site.Data.shows>: can't evaluate field Site in type string
{{ $dataFile := "" }}
{{ with .Params.dataFile }}
{{ $dataFile = index .Site.Data.shows . }}
{{ end }}
5:33:48 PM: Error: Error building site: failed to render pages: render of "section" failed: "/opt/build/repo/layouts/shows/list.html:11:13": execute of template failed: template: shows/list.html:11:13: executing "shows/list.html" at <$show.title>: can't evaluate field title in type string
why is this? it builds locally but not on netlify?