{{ $cover := .HasShortcode "blocks/cover" }} {{ if .Site.Params.ui.navbar_logo }}{{ with resources.Get "icons/logo.svg" }}{{ ( . | minify).Content | safeHTML }}{{ end }}{{ end }}{{ .Site.Title }} {{ $p := . }} {{ $insertDone := false }} {{ with .Site.Menus.main }} {{ range . }} {{ $active := or ($p.IsMenuCurrent "main" .) ($p.HasMenuCurrent "main" .) }} {{ with .Page }} {{ $active = or $active ( $.IsDescendant .) }} {{ end }} {{ $pre := .Pre }} {{ $post := .Post }} {{ $url := urls.Parse .URL }} {{ $baseurl := urls.Parse $.Site.Params.Baseurl }} {{ with .Pre }}{{ $pre }}{{ end }} {{ .Name }} {{ with .Post }}{{ $post }}{{ end }} {{ if not $insertDone }} {{ partial "navbar-community-selector.html" $p }} {{ $insertDone = true }} {{ end }} {{ end }} {{ end }} {{ if .Site.Params.versions }} {{ partial "navbar-version-selector.html" . }} {{ end }} {{ partial "navbar-ecosystem-selector.html" . }} {{ if (gt (len .Site.Home.Translations) 0) }} {{ partial "navbar-lang-selector.html" . }} {{ end }} {{ partial "search-input.html" . }} {{ if (gt (len .Translations) 0) }} {{ range .Translations }} {{ .Language.LanguageName }} {{ end }} {{ end }} {{ partial "search-input.html" . }} GITHUB