{{$currentNode := .}} {{define "open-menu"}} {{- $currentNode := .currentnode -}} {{ with .sect }} {{ if .IsSection }} {{ if in .Site.Params.menu_exclusion .Section }} {{- else -}} {{- safeHTML .Params.head -}} {{- $numberOfPages := (add (len .Pages) (len .Sections)) -}}