{{ $scratch := partialCached "utils/tocparser.html" . . }} {{ $ctx := . }} {{ with ($scratch.GetSortedMapValues "sections") }} {{ range $i, $e := . }} {{- if $i -}} / {{- end -}} {{ markdownify $e.title }} {{- end -}} {{- end -}} {{- with $scratch.Get "lastsection" -}} / {{ markdownify .title }} {{- end -}}