|
1 | 1 | {{ define "header" }} |
2 | | -<div class="header-container"> |
3 | | - <div class="header__control"> |
4 | | - <div class="header__control--sidebar"> |
5 | | - <label class="header__control--sidebar--close" for="sidebar-panel"> |
6 | | - {{ partial "lucide" (dict "context" . "icon" "panel-left-close") }} |
7 | | - </label> |
8 | | - <label class="header__control--sidebar--open" for="sidebar-panel"> |
9 | | - {{ partial "lucide" (dict "context" . "icon" "panel-left-open") }} |
10 | | - </label> |
11 | | - </div> |
12 | | - {{ if ( not ( in .Site.Params.buildtype "package" ) ) }} |
13 | | - <div class="header__search"> |
14 | | - <!-- Standalone search box. --> |
15 | | - {{ partial "coveo-atomic-search.html" (dict "id" "search-standalone-header") }} |
16 | | - </div> |
17 | | - {{ end }} |
18 | | - </div> |
| 2 | +<div class="header-base"> |
| 3 | + <div class="header-container"> |
| 4 | + <div class="header__control"> |
| 5 | + <div class="header__control--sidebar"> |
| 6 | + <label class="header__control--sidebar--close" for="sidebar-panel"> |
| 7 | + {{ partial "lucide" (dict "context" . "icon" "panel-left-close") }} |
| 8 | + </label> |
| 9 | + <label class="header__control--sidebar--open" for="sidebar-panel"> |
| 10 | + {{ partial "lucide" (dict "context" . "icon" "panel-left-open") }} |
| 11 | + </label> |
| 12 | + </div> |
| 13 | + {{ if ( not ( in .Site.Params.buildtype "package" ) ) }} |
| 14 | + <!-- Mobile button --> |
| 15 | + <label class="header__search--mobile--search--button"for="search-standalone-header-panel"> |
| 16 | + {{ partial "lucide" (dict "context" . "icon" "search") }} |
| 17 | + </label> |
| 18 | + <div class="header__search"> |
| 19 | + <!-- Standalone search box. --> |
| 20 | + {{ partial "coveo-atomic-search.html" (dict "id" "search-standalone-header") }} |
| 21 | + </div> |
| 22 | + {{ end }} |
| 23 | + </div> |
19 | 24 |
|
20 | | - <div class="header__logo"> |
21 | | - <a class="header__logo-link" href="{{ .Site.BaseURL | relLangURL }}" alt="NGINX Docs Home"> |
22 | | - <img class="header__img" src="{{ "/images/icons/NGINX-Open-Source-product-icon.svg" | absURL }}" alt="NGINX Docs"> |
23 | | - </a> |
24 | | - </div> |
| 25 | + <div class="header__logo"> |
| 26 | + <a class="header__logo-link" href="{{ .Site.BaseURL | relLangURL }}" alt="NGINX Docs Home"> |
| 27 | + <img class="header__img" src="{{ "/images/icons/NGINX-Open-Source-product-icon.svg" | absURL }}" alt="NGINX Docs"> |
| 28 | + </a> |
| 29 | + </div> |
25 | 30 |
|
26 | | - <div class="header__f5sites"> |
27 | | - {{ $f5Sites := slice |
28 | | - (dict "title" "DevCentral" "url" "https://community.f5.com/" "description" "Connect & learn in our hosted community") |
29 | | - (dict "title" "MyF5" "url" "https://my.f5.com/" "description" "Your key to everything F5, including support, registration keys, and subscriptions") |
30 | | - (dict "title" "NGINX" "url" "https://nginx.org/" "description" "Learn more about NGINX Open Source and read the community blog") |
31 | | - }} |
| 31 | + <div class="header__f5sites"> |
| 32 | + {{ $f5Sites := slice |
| 33 | + (dict "title" "DevCentral" "url" "https://community.f5.com/" "description" "Connect & learn in our hosted community") |
| 34 | + (dict "title" "MyF5" "url" "https://my.f5.com/" "description" "Your key to everything F5, including support, registration keys, and subscriptions") |
| 35 | + (dict "title" "NGINX" "url" "https://nginx.org/" "description" "Learn more about NGINX Open Source and read the community blog") |
| 36 | + }} |
32 | 37 |
|
33 | | - <div class="navbar navbar-nav"> |
34 | | - <div class="nav-item-explore active"> |
35 | | - <button id="navbar-sites-button" class="button navbar-button dropdown-button" data-testid="header__f5sites_button"> |
36 | | - F5 Sites |
37 | | - <span class="header__f5sites--icon"> |
38 | | - {{ partial "lucide" (dict "context" . "icon" "chevron-down") }} |
39 | | - </span> |
40 | | - </button> |
41 | | - <div class="dropdown-content" id="dropdown-content" data-testid="header__f5sites_content"> |
42 | | - <ul> |
43 | | - {{ range $f5Sites }} |
44 | | - <li> |
45 | | - <a href="{{ .url }}" target="_blank" >{{ .title }}</a> |
46 | | - <p>{{ .description }}</p> |
47 | | - </li> |
48 | | - {{ end }} |
49 | | - </ul> |
| 38 | + <div class="navbar navbar-nav"> |
| 39 | + <div class="nav-item-explore active"> |
| 40 | + <button id="navbar-sites-button" class="button navbar-button dropdown-button" data-testid="header__f5sites_button"> |
| 41 | + F5 Sites |
| 42 | + <span class="header__f5sites--icon"> |
| 43 | + {{ partial "lucide" (dict "context" . "icon" "chevron-down") }} |
| 44 | + </span> |
| 45 | + </button> |
| 46 | + <div class="dropdown-content" id="dropdown-content" data-testid="header__f5sites_content"> |
| 47 | + <ul> |
| 48 | + {{ range $f5Sites }} |
| 49 | + <li> |
| 50 | + <a href="{{ .url }}" target="_blank" >{{ .title }}</a> |
| 51 | + <p>{{ .description }}</p> |
| 52 | + </li> |
| 53 | + {{ end }} |
| 54 | + </ul> |
| 55 | + </div> |
50 | 56 | </div> |
51 | | - </div> |
52 | | - </div> |
| 57 | + </div> |
53 | 58 |
|
54 | | - </div> |
| 59 | + </div> |
| 60 | + </div> |
| 61 | + <div class="header-search-dropdown"> |
| 62 | + <atomic-external selector="#search-standalone-header"> |
| 63 | + {{ $redirectUrl := default .Site.Params.coveo_search_redirect "/search.html" }} |
| 64 | + <atomic-search-box redirection-url={{ $redirectUrl }}></atomic-search-box> |
| 65 | + </atomic-external> |
| 66 | + </div> |
55 | 67 | </div> |
56 | 68 | {{ end }} |
0 commit comments