I have a yaml file containing years as keys of an array.
Like:
2018:
foo: bar
2019:
john: doe
But when I try {{ range .Site.Data.something.2018 }} i get a fatal: “range can’t iterate over 0.2018”
2 questions:
- How can i have a integer as key and select this in my range?
- One step up, how can I interate over all years and have the key as variable to print?