{{- $logo := "img/favicon.svg" -}} {{- if os.FileExists "static/img/logo.svg" -}}{{- $logo = "img/logo.svg" -}}{{- end -}} {{ .Site.Title }}
    {{- /* Current page, without a trailing slash, for menu-item highlighting. */ -}} {{- $current := strings.TrimSuffix "/" .RelPermalink -}} {{- range .Site.Menus.main -}} {{- $isActive := and .URL (eq (strings.TrimSuffix "/" .URL) $current) -}} {{- if .HasChildren -}} {{- /* A menu entry with sub-entries (set `parent:` on them) becomes a dropdown. */ -}} {{- range .Children -}} {{- if and .URL (eq (strings.TrimSuffix "/" .URL) $current) }}{{ $isActive = true }}{{ end -}} {{- end -}} {{- $id := printf "navbar-%s" (.Identifier | default (.Name | urlize)) -}}
  • {{ .Name }}
      {{- range .Children }}
    • {{ .Name }}
    • {{- end }}
  • {{- else -}}
  • {{ .Name }}
  • {{- end -}} {{- end }}