then call the section title with something like this (my actual code is a little more complete, but this is the idea):
{{ if $this_section }}
{{ $this_section.Title }}
{{ end }}
I don’t know if this is a tip or an ask for help but this is the best way I’ve found yet to do accomplish getting at that data, having looked around here, the code/docs and the nested section’s sample. And nested sections are new, so perhaps I’ve missed the actual direct method or there will be one in the future.
There is an issue about adding more section related accessors to simplify stuff. We should get that done for the next Hugo, we have an unexported method that returns the “current section”, which I guess would be useful in this case.
That doesn’t work for my actual use case (maybe because I’m allowing for multiple nested sections?), but that’s helpful in thinking through it. So I have something until there’s a more efficient method.
And, for what it’s worth, what I have also lets me pull in additional parameters from the nested section. I use Title and Name so I can have different values for list and singular views.