{{- $defaultConfig := .Site.Data.config.default.widgets.sidebar_menu -}}
{{- $configData := ( or .Site.Data.config.widgets.sidebar_menu $defaultConfig ) -}}
{{- $lang := .Site.Language.Lang -}}
{{- $config := ( ( index $configData $lang ) | default $configData ) -}}

{{- $menu := ( $config.mirror | default "sidebar" ) -}}

{{- $.Scratch.Set "menu" $menu -}}

{{- $items := ( index .Site.Menus $menu ) -}}

{{- if $items -}}

<section class='widget widget-sidebar_menu sep-after'>
  {{- with $config.title -}}
 