{{ if default false .Site.Params.disabled_logo }}

{{ .Site.Params.logo_text }}

{{ else }} {{ .Title }} logo {{ .Title }} logo {{ end }} {{ .Title }} - {{ i18n "navHome" }}
    {{ $current := . }} {{ range .Site.Menus.main.ByWeight }} {{ $topLevel := replace .URL "/" "" }} {{ $active := "" }} {{ if eq $current.RelPermalink .URL }} {{ $active = "active" }} {{ end }} {{ if eq $current.Type $topLevel }} {{ $active = "active" }} {{ end }} {{ if and (or (eq $current.RelPermalink .URL) (eq "term" $current.Kind)) (in (slice "page" "term") $current.Kind) }} {{ range (split .URL "/") }} {{ if eq "blog" . }} {{ $active = "active" }} {{ end }} {{ end }} {{ end }} {{ if .HasChildren }} {{ $hasSections := (hasPrefix (index .Children 0).Identifier "section.") }}
  • {{ .Name }} {{ if $hasSections }}
    • {{ if ne .URL "" }}
      {{ end }}
      {{ range .Children.ByWeight }} {{ $column := printf "%s" .Post }} {{ if eq $column "1" }}
      {{ .Name }}
      {{ if .HasChildren }}
        {{ range .Children.ByWeight }}
      • {{ .Name }}
      • {{- end }}
      {{ end }} {{ end }} {{ end }}
      {{ range .Children.ByWeight }} {{ $column := printf "%s" .Post }} {{ if eq $column "2" }}
      {{ .Name }}
      {{ if .HasChildren }}
        {{ range .Children.ByWeight }}
      • {{ .Name }}
      • {{ end }}
      {{ end }} {{ end }} {{ end }}
      {{ if eq .URL "" }}
      {{ range .Children }} {{ $column := printf "%s" .Post }} {{ if eq $column "3" }}
      {{ .Name }}
      {{ if .HasChildren }}
        {{ range .Children.ByWeight }}
      • {{ .Name }}
      • {{ end }}
      {{ end }} {{ end }} {{ end }}
      {{ range .Children }} {{ $column := printf "%s" .Post }} {{ if eq $column "4" }}
      {{ .Name }}
      {{ if .HasChildren }}
        {{ range .Children.ByWeight }}
      • {{ .Name }}
      • {{ end }}
      {{ end }} {{ end }} {{ end }}
      {{ end }}
    {{ else }}
      {{ range .Children.ByWeight }}
    • {{ .Name }}
    • {{ end }}
    {{ end }}
  • {{ else }}
  • {{ .Name }}
  • {{ end }} {{ end }}
{{ if default false .Site.Params.disabled_logo }}

{{ .Site.Params.logo_text }}

{{ else }} {{ .Title }} logo {{ .Title }} logo {{ end }} {{ .Title }} - {{ i18n "navHome" }}
  • {{ if default false .Site.Params.disabled_logo }}

    {{ .Site.Params.logo_text }}

    {{ else }} {{ .Title }} logo {{ .Title }} logo {{ end }} {{ .Title }} - {{ i18n "navHome" }}
  • {{ $current := . }} {{ range .Site.Menus.main.ByWeight }} {{ $topLevel := replace .URL "/" "" }} {{ $active := "" }} {{ if eq $current.RelPermalink .URL }} {{ $active = "active" }} {{ end }} {{ if eq $current.Type $topLevel }} {{ $active = "active" }} {{ end }} {{ if and (or (eq $current.RelPermalink .URL) (eq "term" $current.Kind)) (in (slice "page" "term") $current.Kind) }} {{ range (split .URL "/") }} {{ if eq "blog" . }} {{ $active = "active" }} {{ end }} {{ end }} {{ end }}
  • {{ .Name }}
  • {{ end }}