{{- $logos := .Site.Params.logo }} {{- $normalPath := absURL (printf "images/%s" $logos.lightMode) }} {{- $darkPath := absURL (printf "images/%s" $logos.darkMode) }} {{ with .Site.Params.darkmode }} {{ end }} {{ .Site.Title }} Logo
  • {{- partial "search" . }}
  • {{- $p := . }} {{- range .Site.Menus.main }}
  • {{- $active := or ($p.IsMenuCurrent "main" .) ($p.HasMenuCurrent "main" .) }} {{- with .Page }} {{- $active = or $active ( $.IsDescendant .) }} {{- end }} {{- $url := absURL .URL }} {{- if or (hasPrefix .URL "http") (hasPrefix .URL "www.") }} {{- $url = .URL }} {{- end }} {{ .Name }}
  • {{- end }} {{ $repo := .Site.Params.source }}
  • {{ $repo.name }}
  • {{ partial "mode" . }}