hello
I’m new to Hugo and I’m developing some shortcuts.
one of these should read an array in one of the formats, possibly yaml or json
I wanted to know if it’s possible to do a genre thing…
{{< exList >}}
[
{"id":"a1"},
{"id":"a2"},
{"id":"a3"}
]
{{< /exList }}
or in yaml
{{< exList >}}
---
- id: a1
- id: a2
- id: a3
{{< /exList }}
so in the template
{{ range .Inner | jsonify }}
{{ .id }}
{{ end }}
or in yaml
Do you think it’s possible?