diff --git a/layouts/partials/navigation.html b/layouts/partials/navigation.html index f79f806..664cbe0 100644 --- a/layouts/partials/navigation.html +++ b/layouts/partials/navigation.html @@ -1,95 +1,131 @@ - - - - {{ $logo:= site.Params.logo }} - {{ $orgName:= site.Params.brand.parent_org_name }} - {{ $orgUrl:= site.Params.brand.parent_org_url }} + + + + + {{ $logo:= site.Params.logo }} + {{ $orgName:= site.Params.brand.parent_org_name }} + {{ $orgUrl:= site.Params.brand.parent_org_url }} + + + {{ if $logo }} + + {{ end }} + + {{ site.Title }} + + {{ partial "breadcrumb.html" . }} + - - {{ if $logo }} - - {{ end }} - {{ site.Title }} - - - - Menu - - + + Menu + + - - - {{ range site.Menus.main }} - {{ if .HasChildren }} - - - {{ .Name }} - - - {{ range .Children }} - {{ .Name }} - {{ end }} - - - {{ else }} - - {{ .Name }} - - {{ end }} - {{ end }} - - - {{- if site.IsMultiLingual }} - - {{ $siteLanguages := site.Languages}} - {{ $pageLang := .Page.Lang}} - {{ range .Page.AllTranslations }} - {{ $translation := .}} - {{ range $siteLanguages }} - {{ if eq $translation.Lang .Lang }} - {{ $selected := false }} - {{ if eq $pageLang .Lang}} - {{ .LanguageName }} - - {{ else }} - {{ .LanguageName }} - {{ end }} - {{ end }} - {{ end }} + + + {{ range site.Menus.main }} + {{ if .HasChildren }} + + + {{ .Name }} + + + {{ range .Children }} + {{ .Name }} + {{ end }} + + + {{ else }} + + {{ .Name }} + + {{ end }} + {{ end }} + + + {{- if site.IsMultiLingual }} + + {{ $siteLanguages := site.Languages}} + {{ $pageLang := .Page.Lang}} + {{ range .Page.AllTranslations }} + {{ $translation := .}} + {{ range $siteLanguages }} + {{ if eq $translation.Lang .Lang }} + {{ $selected := false }} + {{ if eq $pageLang .Lang}} + {{ .LanguageName }} + + {{ else }} + {{ .LanguageName }} + {{ end }} + {{ end }} + {{ end }} + {{ end }} + {{ end }} - - {{ end }} - Visit {{ $orgName }} + Visit {{ $orgName }} + + {{ if not .IsHome }} + {{ end }} - {{ if not .IsHome }} - - - {{ partial "breadcrumb.html" . }} - - - - - {{ $currentNode := . }} - {{range .Site.Home.Sections.ByWeight}} + + + + {{ partial "breadcrumb.html" . }} + + + + + {{ $currentNode := . }} + {{range .Site.Home.Sections.ByWeight}} {{ if eq .FirstSection $currentNode.FirstSection }} {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode "index" 0}} {{ end }} - {{ end }} - {{ partial "download-pdf.html" .}} - + {{ end }} + {{ partial "download-pdf.html" .}} + + + + - {{ end }}
Visit {{ $orgName }}