{{/* For small devices: show a menu button instead */}} {{ define "tree-nav" }} {{ $currentNode := .currentNode }} {{ $currentFileUniqueID := "" }} {{ $level := .level }} {{ $alwaysShow := .alwaysShow }} {{ with $currentNode.File }}{{ $currentFileUniqueID = .UniqueID }}{{ end }} {{ with $currentNode.File }}{{ $currentFileUniqueID = .UniqueID }}{{ end }} {{with .sect}} {{if .IsSection }} {{ $isCurrent := .InSection $currentNode }}
  • {{or .Params.menuTitle .LinkTitle .Title}}
  • {{ else }} {{or .Params.menuTitle .LinkTitle .Title}} {{ $numberOfPages := (add (len .Pages) (len .Sections)) }} {{ if ne $numberOfPages 0 }} {{ if or (not (isset .Params "no_nav")) (eq $alwaysShow 1)}} {{ end }} {{end}} {{ end }} {{ else if isset .Params "href" }}
  • {{or .Params.menuTitle .LinkTitle .Title}}
  • {{ else }} {{ $isCurrent := eq .File.UniqueID $currentFileUniqueID }} {{ end }} {{ end }} {{ end }}