I have a page where I want to list the technical talks I’ve given. Each talk may have more than one resource associated with it. I want to create a list of talks with lists of resources.
Okay, nevermind. The obvious solution is just to define the path as I normally would with slashes. Now my question has become how do I reference the item at the current position in an array I’m iterating over?
I may be on the wrong track but I would think I could do something like {{ range (where .Pages "Section" "talk/{{ .Params.foldername }}") }} and have {{ .Params.foldername }} refer to the value defined in the front matter each conference’s _index.md.
I have the same structure - a section within section and I’m using this in list.html to render either the list of subsections or the .md files if I’m inside a subsection:
{{ range $index, $element := .Sections }}
<!-- subsections list -->
{{ end }}
{{ range .Data.Pages }}
<!-- .md content files -->
{{ end }}
… basically what @alexandros has posted a few posts above, except I’m not explicitly checking for sections.