summaryrefslogtreecommitdiff
path: root/layouts/partials/header.html
blob: 89338838c33097ffecc8ae29b19f811308ae3e28 (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
{{/* Header */}}

<div class="header">

    {{ if or (not (.Param "hideHeader")) .IsHome }}

    <h1 class="header-title">{{ site.Title }}</h1>

    <div class="flex">
        {{ $currentPage := . }}

        {{ with site.Params.menu }}
        {{ range . }}
        <p class="small {{ if eq .url $currentPage.Path }} bold {{end}}">
            <a href="{{.url}}">
                /{{.name }}
            </a>
        </p>
        {{ end }}
        {{ end }}
    </div>

    {{ end }}

</div>