link }}">{{ .LinkTitle | default $name }}</a>
      {{ $sectionPage := .CurrentSection }}
      {{ $.Scratch.Delete "pages" }}
      {{ range $.Site.RegularPages }}
        {{ if (.IsDescendant $sectionPage) }}
          {{ $.Scratch.Add "pages" (slice .) }}
        {{ end }}
      {{ end }}
      {{ $pages := $.Scratch.Get "pages" }}
      <small>{{ printf "(%d)" (len $pages) }}</small>
      {{ if eq $depth 2 }}
        </h2>
      {{ else if eq $depth 3 }}
          </h3>
      {{ else }}
            </d