{{ $p := . }} {{ $basePath := path.Clean (urls.Parse .Site.BaseURL).Path }} {{ if eq $basePath "/" }} {{ $basePath = "" }} {{ end }} {{ $links := false }} {{ $pills := false }} {{ $tabs := false }} {{ with .Site.Params.paige.menu_style }} {{ if eq . `links` }} {{ $links = true }} {{ else if eq . `tabs` }} {{ $tabs = true }} {{ else }} {{ $pills = true }} {{ end }} {{ else }} {{ $pills = true }} {{ end }}