{{ $currentPage := . }} {{ with $currentPage.Ancestors }} {{ range .Reverse }}
  1. {{ .Title }}
  2. {{ end }} {{ end }} {{ if or (ne $currentPage.Type "posts") (eq $currentPage.Kind "section") }}
  3. {{ $currentPage.Title }}
  4. {{ end }}