|
6 | 6 | </a> |
7 | 7 | <div class="o-header__curtain"></div> |
8 | 8 | <div class="o-header__nav o-container"> |
9 | | - <li class="o-header__item a-theme-toggle--mobile"> |
| 9 | + <div class="a-theme-toggle--mobile"> |
10 | 10 | {{ partial "theme-toggle" }} |
11 | | - </li> |
| 11 | + </div> |
12 | 12 | <button class="o-nav__menu-button" title="Menü öffnen" aria-expanded="false" aria-haspopup="true"> |
13 | 13 | <span>{{ T "menu-open" }}</span> |
14 | 14 | {{ partial "icon" "menu" }} |
|
19 | 19 | {{ partial "icon" "close" }} |
20 | 20 | </button> |
21 | 21 | <menu> |
22 | | - {{ $currentPage := . }} |
23 | | - <li class="o-header__item o-dropdown"> |
24 | | - <hr /> |
25 | | - <button |
26 | | - id="navbar-country-selection-button" |
27 | | - class="o-dropdown__button" |
28 | | - aria-expanded="false" |
29 | | - aria-haspopup="listbox" |
30 | | - aria-controls="navbar-country-selection-dropdown" |
31 | | - title="{{ T "language-switcher.aria-label" }}" |
32 | | - aria-label='{{ T "countries.selection.aria-label" }}' |
33 | | - > |
34 | | - <span>{{ T "countries.selection.title" }}</span> |
35 | | - <div class="o-dropdown__icon"> |
36 | | - {{ partial "icon" "keyboard_arrow_down" }} |
37 | | - </div> |
38 | | - </button> |
39 | | - <menu |
40 | | - id="navbar-country-selection-dropdown" |
41 | | - class="o-header__item-countries o-dropdown__menu o-dropdown__menu--below" |
42 | | - role="listbox" |
43 | | - aria-hidden="true" |
44 | | - aria-label="{{ T "countries.selection.dropdown-label" }}" |
45 | | - > |
46 | | - {{ range where site.RegularPages "Section" "country"}} |
47 | | - <li class="o-header__item{{ if (.Eq $currentPage) }} o-header__item--current{{ end }}"> |
48 | | - <a href="{{ .Permalink }}"> |
49 | | - {{ partial "flag" (dict "country" .File.ContentBaseName) }} |
50 | | - <span>{{ .Title }}</span> |
51 | | - </a> |
| 22 | + <li class="o-header__item"> |
| 23 | + <menu> |
| 24 | + {{ $currentPage := . }} |
| 25 | + <li class="o-header__item o-dropdown"> |
| 26 | + <hr /> |
| 27 | + <button |
| 28 | + id="navbar-country-selection-button" |
| 29 | + class="o-dropdown__button" |
| 30 | + aria-expanded="false" |
| 31 | + aria-haspopup="listbox" |
| 32 | + aria-controls="navbar-country-selection-dropdown" |
| 33 | + title="{{ T "language-switcher.aria-label" }}" |
| 34 | + aria-label='{{ T "countries.selection.aria-label" }}' |
| 35 | + > |
| 36 | + <span>{{ T "countries.selection.title" }}</span> |
| 37 | + <div class="o-dropdown__icon"> |
| 38 | + {{ partial "icon" "keyboard_arrow_down" }} |
| 39 | + </div> |
| 40 | + </button> |
| 41 | + <menu |
| 42 | + id="navbar-country-selection-dropdown" |
| 43 | + class="o-header__item-countries o-dropdown__menu o-dropdown__menu--below" |
| 44 | + role="listbox" |
| 45 | + aria-hidden="true" |
| 46 | + aria-label="{{ T "countries.selection.dropdown-label" }}" |
| 47 | + > |
| 48 | + {{ range where site.RegularPages "Section" "country"}} |
| 49 | + <li class="o-header__item{{ if (.Eq $currentPage) }} o-header__item--current{{ end }}"> |
| 50 | + <a href="{{ .Permalink }}"> |
| 51 | + {{ partial "flag" (dict "country" .File.ContentBaseName) }} |
| 52 | + <span>{{ .Title }}</span> |
| 53 | + </a> |
| 54 | + </li> |
| 55 | + {{ end }} |
| 56 | + </menu> |
| 57 | + <hr /> |
52 | 58 | </li> |
53 | | - {{ end }} |
54 | | - </menu> |
55 | | - <hr /> |
56 | | - <button |
57 | | - id="navbar-operator-selection-button" |
58 | | - class="o-dropdown__button" |
59 | | - aria-expanded="false" |
60 | | - aria-haspopup="listbox" |
61 | | - aria-controls="navbar-operator-selection-dropdown" |
62 | | - title="{{ T "language-switcher.aria-label" }}" |
63 | | - aria-label='{{ T "operators.selection.aria-label" }}' |
64 | | - > |
65 | | - <span>{{ T "operators.selection.title" }}</span> |
66 | | - <div class="o-dropdown__icon"> |
67 | | - {{ partial "icon" "keyboard_arrow_down" }} |
68 | | - </div> |
69 | | - </button> |
70 | | - <menu |
71 | | - id="navbar-operator-selection-dropdown" |
72 | | - class="o-header__item-operators o-dropdown__menu o-dropdown__menu--below" |
73 | | - role="listbox" |
74 | | - aria-hidden="true" |
75 | | - aria-label="{{ T "operators.selection.dropdown-label" }}" |
76 | | - > |
77 | | - {{ range where site.RegularPages "Section" "operator"}} |
78 | | - <li class="o-header__item{{ if (.Eq $currentPage) }} o-header__item--current{{ end }}"> |
79 | | - <a href="{{ .Permalink }}"> |
80 | | - {{ partial "operator-logo" (dict "operator" .File.ContentBaseName) }} |
81 | | - <span>{{ .Title }}</span> |
82 | | - </a> |
| 59 | + <li class="o-header__item o-dropdown"> |
| 60 | + <button |
| 61 | + id="navbar-operator-selection-button" |
| 62 | + class="o-dropdown__button" |
| 63 | + aria-expanded="false" |
| 64 | + aria-haspopup="listbox" |
| 65 | + aria-controls="navbar-operator-selection-dropdown" |
| 66 | + title="{{ T "language-switcher.aria-label" }}" |
| 67 | + aria-label='{{ T "operators.selection.aria-label" }}' |
| 68 | + > |
| 69 | + <span>{{ T "operators.selection.title" }}</span> |
| 70 | + <div class="o-dropdown__icon"> |
| 71 | + {{ partial "icon" "keyboard_arrow_down" }} |
| 72 | + </div> |
| 73 | + </button> |
| 74 | + <menu |
| 75 | + id="navbar-operator-selection-dropdown" |
| 76 | + class="o-header__item-operators o-dropdown__menu o-dropdown__menu--below" |
| 77 | + role="listbox" |
| 78 | + aria-hidden="true" |
| 79 | + aria-label="{{ T "operators.selection.dropdown-label" }}" |
| 80 | + > |
| 81 | + {{ range where site.RegularPages "Section" "operator"}} |
| 82 | + <li class="o-header__item{{ if (.Eq $currentPage) }} o-header__item--current{{ end }}"> |
| 83 | + <a href="{{ .Permalink }}"> |
| 84 | + {{ partial "operator-logo" (dict "operator" .File.ContentBaseName) }} |
| 85 | + <span>{{ .Title }}</span> |
| 86 | + </a> |
| 87 | + </li> |
| 88 | + {{ end }} |
| 89 | + </menu> |
83 | 90 | </li> |
84 | | - {{ end }} |
85 | | - </menu> |
86 | | - <ul class="o-header__item-wrapper"> |
87 | 91 | <hr /> |
88 | | - {{ $news := site.GetPage "news" }} |
89 | 92 | <li class="o-header__item" id="li-header-news"> |
| 93 | + {{ $news := site.GetPage "news" }} |
90 | 94 | <a href="{{ $news.RelPermalink }}">{{ $news.Title }}</a> |
91 | 95 | </li> |
92 | 96 | <hr /> |
93 | | - {{ $informationPage := site.GetPage "generalInformation" }} |
94 | 97 | <li class="o-header__item"> |
| 98 | + {{ $informationPage := site.GetPage "generalInformation" }} |
95 | 99 | <a href="{{ $informationPage.RelPermalink }}">{{ $informationPage.Title }}</a> |
96 | 100 | </li> |
97 | 101 | <hr /> |
98 | | - </ul> |
| 102 | + </menu> |
99 | 103 | </li> |
100 | 104 | <li class="o-header__item a-theme-toggle--desktop"> |
101 | 105 | {{ partial "theme-toggle" }} |
|
0 commit comments