{{- $label_text := (site.Params.label.text | default site.Title) }} {{- if site.Title }} {{- if site.Params.label.icon }} {{- $img := resources.Get site.Params.label.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.label.iconHeight }} {{- $img = $img.Resize (printf "x%d" site.Params.label.iconHeight) }} {{ else }} {{- $img = $img.Resize "x30" }} {{- end }} {{- end }} {{- else }} {{- end -}} {{- else if hasPrefix site.Params.label.iconSVG " {{- /* Inside a topic, name it next to the site title so the current research area is visible from every page. */ -}} {{- $section := .Section }} {{- range hugo.Data.topics.topics }} {{- if eq .slug $section }} / {{ .title }} {{- end }} {{- end }} {{- end }} {{- $lsenabled := (or (not site.Params.disableThemeToggle) (and (not site.Params.disableLangToggle) (hugo.IsMultilingual))) }} {{- if $lsenabled }}
{{- if (not site.Params.disableThemeToggle) }} {{- end }} {{- if (not site.Params.disableLangToggle) }} {{- $lang := .Lang}} {{- with site.Home.Translations }} {{- $separator := or $label_text (not site.Params.disableThemeToggle)}} {{- if $separator }}|{{ end }}
    {{- range . -}} {{- if ne $lang .Lang }}
  • {{- if (and site.Params.displayFullLangName (.Language.LanguageName)) }} {{- .Language.LanguageName | emojify -}} {{- else }} {{- .Lang | title -}} {{- end -}}
  • {{- end -}} {{- end}}
{{- end }} {{- end }}
{{- end }}
{{- $section := .Section }} {{- if $section }} {{- /* Paths are passed to relURL *without* a leading slash: relURL only prepends the baseURL subpath (e.g. /owner/repo/) for inputs that are not already root-relative. .RelPermalink carries that same prefix, so the active check compares like with like. */ -}}
    {{- range slice "venues" "calendar" "digests" }} {{- $url := printf "%s/%s/" $section . | relURL }}
  • {{ . | title }}
  • {{- end }}
{{- end }}