{{ $chapters := .content.Page.Pages }} {{ $currentLink := .currentLink}} {{ range .Page.Translations }} {{ $chapters = $chapters | lang.Merge .Pages }} {{ end}}
    {{ range sort $chapters "Weight" }}
  1. {{ $fullTitle := .Title }} {{ with .Params.chapterName }} {{ $fullTitle = printf "%s – %s" $fullTitle . }} {{ end }} {{ if eq $currentLink .RelPermalink }} {{ trim $fullTitle " " }} ({{ i18n "current"}}) {{ else }} {{ trim $fullTitle " " }} {{ end }} {{ partial "post-info.html" . }} {{ if .IsSection}} {{ partial "toc.html" (dict "content" . "currentLink" $currentLink) }} {{ end }}
  2. {{ end }}