This is a true gem by Joe Mooring: Generating a trail of breadcrumbs became much simpler with Hugo v0.109.0 and later. Use the .Ancestors method on .Page. {{- range .Ancestors.Reverse }} {{ .Title }}
{{- end }} {{ .Title }}
UPDATED 2023-03-06: You can find this code now also in the breadcrumbs add-on.