{{ $currentPage := . -}} {{ $section := $currentPage.Section -}} {{ range (where .Site.Sections "Section" "in" $section) }} {{ range .Sections.ByWeight }} {{ $active := in $currentPage.RelPermalink .RelPermalink }}
    • {{ range (.Pages.ByParam "Title").ByParam "Weight" }} {{ if .IsNode }} {{ $active := in $currentPage.RelPermalink .RelPermalink }}
      • {{ range (.Pages.ByParam "Title").ByParam "Weight" }} {{ if .IsNode }} {{ $active := in $currentPage.RelPermalink .RelPermalink }}
        • {{ range (.Pages.ByParam "Title").ByParam "Weight" }} {{ $active := in $currentPage.RelPermalink .RelPermalink }}
        • {{ .Title }}
        • {{ end }}
      • {{ else }} {{ $active := in $currentPage.RelPermalink .RelPermalink }}
      • {{ .Title }}
      • {{ end }} {{ end }}
    • {{ else }} {{ $active := in $currentPage.RelPermalink .RelPermalink }}
    • {{ if (eq .CurrentSection.Title .Title) }}Introduction{{ else }}{{ .Title }}{{ end }}
    • {{ end }} {{ end }}
  • {{ end }} {{ end }}