 <header>
    <h4 class='title widget-title'>
      {{- . -}}
    </h4>
  </header>
  {{- end -}}

  <nav id='sidebar-menu' class='menu sidebar-menu' aria-label='{{ i18n "sidebarMenu" }}'>
    <div class='container'>
      <ul>
      {{- range $items -}}
        {{- template "menu_item" ( dict "Item" . "Page" $ ) -}}
      {{- end -}}
      </ul>
    </div>
  </nav>

</section>

{{- end -}}

{{- define "menu_item" -}}

{{- $menu := ( .Page.Scratch.Get "menu" ) -}}

{{- $isCurrent := ( .Page.IsMenuCurrent $m