{{/* Site logo/title */}}
{{ partial "logo.html" . }} {{ partial "translations.html" . }}
{{/* Main menu */}} {{ if or .Site.Menus.main (.Site.Params.enableSearch | default false) }}
    {{ if .Site.Menus.main }} {{ range .Site.Menus.main }}
  • {{ if eq .Params.action "search" }} {{ $.Scratch.Add "searchCount" 1 }} {{ if $.Site.Params.enableSearch | default false }} {{ end }} {{ else if eq .Params.action "appearance" }} {{ $.Scratch.Add "switchCount" 1 }} {{ else }} {{ with .Params.icon }} {{ partial "icon.html" . }} {{ end }}{{ if .Params.showName | default true }} {{ .Name | markdownify | emojify }} {{ end }} {{ end }}
  • {{ end }} {{ if and ($.Site.Params.enableSearch | default false) (eq ($.Scratch.Get "searchCount") 0) }}
  • {{ end }} {{ end }}
{{ end }}