blob: 88bf4473355c7fb99172e2768b21a4326fc0171a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{{ if or (or (and .IsHome .Site.Params.displayHeaderInHome) (eq .Site.Params.headerLayout "flex")) (and (not .IsHome) .Site.Params.enableHeader) }}
<header class="header">
{{ if eq .Site.Params.headerLayout "flex" }}
<div class="header-wrapper">
<div class="header-inner {{ cond (or .IsHome (eq (len .Pages) 0)) "single" "list"}}">
{{ template "site-brand" . }}
{{ partial "menu.html" . }}
{{ partial "custom/header.html" . }}
</div>
</div>
{{ partial "components/nav-toggle.html" . }}
{{ else }}
{{ template "site-brand" . }}
{{ end }}
</header>
{{ end }}
{{ define "site-brand" }}
<div class="site-brand">
{{ if .Site.Params.siteBrandSVG }}
<a href="{{ "" | relLangURL }}">{{ partial "utils/icon.html" (dict "$" . "name" "brand") }}</a>
{{ else }}
<a href="{{ "" | relLangURL }}" class="brand">{{ .Site.Title }}</a>
{{ end }}
</div>
{{ end }}
|