{{ partial "utils/icon.html" (dict "name" "hextra" "attributes" "height=20") }} {{- .Site.Title -}} {{- $currentPage := . -}} {{- range .Site.Menus.main -}} {{- if eq .Params.type "search" -}} {{- partial "search.html" (dict "params" .Params) -}} {{- else -}} {{- $external := strings.HasPrefix .URL "http" -}} {{/* Display icon menu item */}} {{- if .Params.icon -}} {{- partial "utils/icon.html" (dict "name" .Params.icon "attributes" "height=24") -}} {{ .Name }} {{- else -}} {{- $active := or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .) -}} {{- $activeClass := cond $active "font-medium" "text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200" -}} {{ .Name }} {{- end -}} {{- end -}} {{- end -}}