How can I get a user-friendly Section name/title?

Not 100% sure what you’re trying to accomplish, but you can, for any given section (e.g. books), give it an index file content/books/_index.md and in that index file assign it a title (title: Books)

Then, in your templates, do something like this:

{{$section_heading := .Site.GetPage "section" .Section }}
{{with $section_heading}}
  {{- .Title -}}
{{end}}

Hope that helps!

2 Likes