blob: ed022a90340dda3516f1eed2a6019cb53d78398c (
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
34
|
<header class="text-gray-700 body-font sticky top-0 bg-white z-10">
<div
class="container mx-auto flex flex-wrap p-5 flex-col md:flex-row items-center"
>
<a
class="flex title-font font-medium items-center text-gray-900 mb-4 md:mb-0"
href="{{ .Site.BaseURL }}"
>
{{- partial "logo.html" . -}}
</a>
<nav
class="md:ml-auto flex flex-wrap items-center text-base justify-center"
>
{{ if and (eq .Site.Params.hideAutoMenu false) (eq $.IsNode true ) }}
<a
class="mr-2 px-2 rounded cursor-pointer select-none hover:text-gray-900 show-all"
>All</a
>
{{ range where .Site.Sections ".Params.private" "!=" true }}
<a
class="mr-2 px-2 rounded cursor-pointer select-none hover:text-gray-900 filter-{{lower .Title}}"
>{{.Title}}</a
>
{{ end }}
{{ end }}
{{ range .Site.Menus.main }}
<a
href="{{ .URL }}"
class="mr-2 px-2 rounded cursor-pointer select-none hover:text-gray-900"
>{{ .Name }}</a>
{{ end }}
</nav>
</div>
</header>
|