This seems like it should be simple, but no examples I’ve run through have been successful so far. In a page FrontMatter (where I use YAML) I have a simple list, like this:
experience:
- years: 2015-
name: Position Name
location: Location Name
description: Descriptive text
- years: 2015-2016
name: Position Name
location: Location Name
description: Descriptive text
- years: 2014-2015
name: Position Name
location: Location Name
description: Descriptive text
- years: 2013, 2014, 2015
name: Position Name
location: Location Name
description: Descriptive text
And I try to iterate with this:
{{ range $ind, $ele := .Params.experience }}
<p>{{ $ele.years }}</p>
{{ end }}
But I get no output from this, yet no errors. How do I iterate through a YAML list?