f="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
            {{ end }}
          </details>
          {{ end }}
          </li>
        {{ end }}
        </ul>
    </nav>
  </div>
  {{ $headers := findRE "<h[2].*>" $page.Content }}
  {{- $has_headers := ge (len $headers) 1 -}}
  {{- if $has_headers -}}
  <details id="PageTableOfContents">
    <summary><h2 class="mv0 f5 fw7 ttu tracked dib">{{ $page_toc_label }}<h2></summary>
    <div class="pl2 pr0 mh0">
    {{ $page.TableOfContents }}
    </div>
  </details>