 {{ $depthNext := 0 }}
      {{ if lt $index (sub (len $pages) 1) }}
        {{ $pageNext := index $pages (add $index 1) }}
        {{ $depthNext = len (split (strings.TrimPrefix "/" $pageNext) "/") }}
      {{ end }}
      {{ $name := index $sections $index }}
      {{ if eq $depth 2 }}
        <div><h2 class="item header">
      {{ else if eq $depth 3  }}
          <h3 class="item header">
      {{ else }}
            <div class="item normal"><div class="title">
      {{ end }}
      <a href="{{ .RelPerma