If I have page front matter with multiple levels. My page front matter looks like this:
grids:
- template: section
background_image: "/uploads/2018/05/01/q-mark.png"
rows:
- template: row
stack-columns: tablet-s
cols:
- template: column
- template: section
background_image: "/uploads/2018/05/01/q-mark.png"
rows:
- template: row
stack-columns: tablet-s
cols:
- template: column
I can display the first-level template name for both of my grids:
{{ range .Params.grids }}
{{ .template }}
{{ end }}
How can I return the template name of rows and cols within the loop?
Solved, solution here: https://stackoverflow.com/questions/51003102/hugo-nested-loop-to-iterate-through-multi-level-yaml