Welcome to mirror list, hosted at ThFree Co, Russian Federation.

header.html « partials « layouts - github.com/apvarun/showcase-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3c603d38fc11e1527a01ce9fe2827bd48008a1b6 (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 .Site.Sections }}
      <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>