{{- $label_text := (site.Params.logo.text | default site.Title) }} {{- if site.Title }} {{- if site.Params.logo.icon }} {{- $img := resources.Get site.Params.logo.icon }} {{- if $img }} {{- $processableFormats := (slice "jpg" "jpeg" "png" "tif" "bmp" "gif") -}} {{- if hugo.IsExtended -}} {{- $processableFormats = $processableFormats | append "webp" -}} {{- end -}} {{- $prod := (hugo.IsProduction | or (eq site.Params.env "production")) }} {{- if and (in $processableFormats $img.MediaType.SubType) (eq $prod true)}} {{- if site.Params.logo.iconHeight }} {{- $img = $img.Resize (printf "x%d" site.Params.logo.iconHeight) }} {{ else }} {{- $img = $img.Resize "x30" }} {{- end }} {{- end }} logo {{- else }} logo {{- end -}} {{- end -}} {{- $label_text -}} {{- end }} {{- if (not site.Params.disableThemeToggle) }} {{- end }}
{{- $currentPage := . }}
    {{- range site.Menus.main }} {{- $menu_item_url := (cond (strings.HasSuffix .URL "/") .URL (printf "%s/" .URL)) | absURL }} {{- $page_url:= $currentPage.Permalink }} {{- $is_search := eq (site.GetPage .KeyName).Layout `search` }}
  • {{- .Pre }} {{- .Name -}} {{ .Post -}} {{- if .Params.External }}{{ safeHTML (index $.Site.Data.svg "external-link") }}{{- end }}
  • {{- end }}