{{ partial "utils/icon.html" (dict "name" "hugo" "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" }} {{- if .Params.icon -}} {{ partial "utils/icon.html" (dict "name" .Params.icon "attributes" "height=24") }} {{ .Name }} {{- else -}} {{ .Name }} {{- end -}} {{ end }} {{ end }}