{{ $sideMargin := "50px" }} {{ $verticalMargin := "30px" }} {{ $fontSize:= "12pt" }} {{ $currentPage := . }} {{ $curWeight := -1 }} {{ range .Site.Menus.docs }} {{ if .HasChildren }} {{ $extractParent := $currentPage.Parent.Page }} {{ $currentParent := (replaceRE "Page\\(\\/(.*)\\)" "$1" $extractParent) }} {{ range .Children }} {{ if eq $currentParent (.Parent) }} {{ if .Weight }} {{ if $currentPage.IsMenuCurrent "docs" . }}
{{ end }} {{ else }} {{ if $currentPage.IsMenuCurrent "docs" . }}