    {{ $class := printf "toc-%s" (lower .Type) }}
        <div class="toc-element {{ $class }}">
          <div class="toc-number number">{{ .Number }}</div>
          <div class="toc-name"><a href="#{{ .ID }}">{{ index .Body 0 }}</a></div>
        </div>
      {{ end }}
    </nav>

    <div class="content">
      <header class="header">
        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" id="toggle-toc" class="toggle-toc-button" viewBox="0 0 16 16">
          <path fi