I have similiar front matter structure in 2 different content
content/bahasa/
_index.md
outlet.md
_index.md
---
title: "Beranda"
hero_bg: "hero-1349.webp"
content:
- heading: "Gerai Resmi"
body: "Street art hammock venmo tumeric, palo santo lumbersexual hella franzen. Roof party helvetica biodiesel truffaut gastropub bicycle rights"
- heading: "Lapak Online"
body: "Street art hammock venmo tumeric, palo santo lumbersexual hella franzen. Roof party helvetica biodiesel truffaut gastropub bicycle rights"
---
outlet.md
---
title: "Gerai"
slug: "gerai"
type: "pages"
layout: "outlet"
draft: "false"
menu: ["main"]
menu_name: "Gerai"
weight: 3
hero: "store.webp"
content:
- heading: "Gerai Resmi"
body: "Street art hammock venmo tumeric, palo santo lumbersexual hella franzen. Roof party helvetica biodiesel truffaut gastropub bicycle rights"
- heading: "Lapak Online"
body: "Street art hammock venmo tumeric, palo santo lumbersexual hella franzen. Roof party helvetica biodiesel truffaut gastropub bicycle rights"
---
Strangely the code that i made not working with _index.md front matter. Here is the code
index.html
{{ $hero := index (.Params.content) 0 }}
<index .Params.content 0>: error calling index: index of untyped nil
single.html (template for outlet.md)
{{ $geraiHeading := index (.Params.content) 0 }}
{{ $geraiText := index (.Params.content) 1 }}
<!-- Rendering perfectly without error ->
did i missed something here?