aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/header.html
blob: 242c4f379ed24e30762e73d47d8550d3f7c60fac (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
27
28
29
30
31
32
33
{{ if .Site.Params.enableCustomHTML }}
  {{ partial "custom/above-header" . }}
{{ end }}

{{ if .Site.Params.useLargeHeaderDesign }}
<div class="header header--large">
  <div class="contain contain--more center">
    <a href="/" class="header__logo">
      {{ if .Site.Params.useLogo }}
        <img src="{{ .Site.Params.logo }}" alt="{{ .Site.Title }}">
          {{ else }}
        <h1>{{ .Site.Title }}</h1>
      {{ end }}
    </a>
  </div>
</div>
{{ else }}
<div class="header">
  <div class="contain">
    <a href="/" class="header__logo header__logo--small">
      {{ if .Site.Params.useLogo }}
        <img src="{{ .Site.Params.logo }}" alt="{{ .Site.Title }}">
          {{ else }}
        <h1>{{ .Site.Title }}</h1>
      {{ end }}
    </a>
  </div>
</div>
{{ end }}

{{ if .Site.Params.enableCustomHTML }}
  {{ partial "custom/below-header" . }}
{{ end }}