@@ -131,41 +131,8 @@ <h5 class="offcanvas-title" id="offcanvasNavMainLabel">{{ site.Title }}</h5>
131131 < span class ="ms-2 text-bs-body fw-bold "> | docs</ span >
132132 </ a >
133133
134- <!-- Search -->
135- < div class ="flex-grow-1 d-none d-lg-flex justify-content-center align-items-center ">
136-
137- <!-- FlexSearch desktop -->
138- {{ partial "main/showFlexSearch" . }}
139- {{ $showFlexSearch := .Scratch.Get "showFlexSearch" -}}
140- {{ if $showFlexSearch -}}
141- < button type ="button " id ="searchToggleDesktop " class ="btn btn-link nav-link p-2 d-none d-lg-block "
142- aria-label ="Search website ">
143- < span class ="fw-bold "> Search docs </ span >
144- < svg xmlns ="http://www.w3.org/2000/svg " class ="icon icon-tabler icon-tabler-search " width ="24 "
145- height ="24 " viewBox ="0 0 24 24 " stroke-width ="2 " stroke ="currentColor " fill ="none "
146- stroke-linecap ="round " stroke-linejoin ="round ">
147- < path stroke ="none " d ="M0 0h24v24H0z " fill ="none "> </ path >
148- < circle cx ="10 " cy ="10 " r ="7 "> </ circle >
149- < line x1 ="21 " y1 ="21 " x2 ="15 " y2 ="15 "> </ line >
150- </ svg >
151- </ button >
152- {{ end -}}
153-
154- <!-- DocSearch desktop -->
155- {{ if site.Params.add_ons.docSearch -}}
156- < button type ="button " id ="searchToggleDesktop " class ="btn btn-link nav-link mx-2 d-none d-lg-block "
157- aria-label ="Search website ">
158- < span class ="fw-bold "> Search docs </ span >
159- < svg xmlns ="http://www.w3.org/2000/svg " class ="icon icon-tabler icon-tabler-search " width ="24 "
160- height ="24 " viewBox ="0 0 24 24 " stroke-width ="2 " stroke ="currentColor " fill ="none "
161- stroke-linecap ="round " stroke-linejoin ="round ">
162- < path stroke ="none " d ="M0 0h24v24H0z " fill ="none "> </ path >
163- < circle cx ="10 " cy ="10 " r ="7 "> </ circle >
164- < line x1 ="21 " y1 ="21 " x2 ="15 " y2 ="15 "> </ line >
165- </ svg >
166- </ button >
167- {{ end -}}
168- </ div >
134+ <!-- Spacer -->
135+ < div class ="flex-grow-1 d-none d-lg-block "> </ div >
169136
170137 <!-- Language dropdown -->
171138 {{ if eq site.Params.doks.multilingualMode true -}}
@@ -264,6 +231,41 @@ <h5 class="offcanvas-title" id="offcanvasNavMainLabel">{{ site.Title }}</h5>
264231
265232 <!-- Right-aligned items -->
266233 < div class ="d-flex align-items-center ms-lg-auto ">
234+
235+ <!-- FlexSearch desktop -->
236+ {{ partial "main/showFlexSearch" . }}
237+ {{ $showFlexSearch := .Scratch.Get "showFlexSearch" -}}
238+ {{ if $showFlexSearch -}}
239+ < button type ="button " id ="searchToggleDesktop " class ="btn btn-link nav-link d-none d-lg-flex align-items-center me-2 "
240+ aria-label ="Search website ">
241+ < svg xmlns ="http://www.w3.org/2000/svg " class ="icon icon-tabler icon-tabler-search me-1 " width ="16 "
242+ height ="16 " viewBox ="0 0 24 24 " stroke-width ="2 " stroke ="currentColor " fill ="none "
243+ stroke-linecap ="round " stroke-linejoin ="round ">
244+ < path stroke ="none " d ="M0 0h24v24H0z " fill ="none "> </ path >
245+ < circle cx ="10 " cy ="10 " r ="7 "> </ circle >
246+ < line x1 ="21 " y1 ="21 " x2 ="15 " y2 ="15 "> </ line >
247+ </ svg >
248+ < span > Search</ span >
249+ < kbd class ="search-kbd ms-2 "> /</ kbd >
250+ </ button >
251+ {{ end -}}
252+
253+ <!-- DocSearch desktop -->
254+ {{ if site.Params.add_ons.docSearch -}}
255+ < button type ="button " id ="searchToggleDesktop " class ="btn btn-link nav-link d-none d-lg-flex align-items-center me-2 "
256+ aria-label ="Search website ">
257+ < svg xmlns ="http://www.w3.org/2000/svg " class ="icon icon-tabler icon-tabler-search me-1 " width ="16 "
258+ height ="16 " viewBox ="0 0 24 24 " stroke-width ="2 " stroke ="currentColor " fill ="none "
259+ stroke-linecap ="round " stroke-linejoin ="round ">
260+ < path stroke ="none " d ="M0 0h24v24H0z " fill ="none "> </ path >
261+ < circle cx ="10 " cy ="10 " r ="7 "> </ circle >
262+ < line x1 ="21 " y1 ="21 " x2 ="15 " y2 ="15 "> </ line >
263+ </ svg >
264+ < span > Search</ span >
265+ < kbd class ="search-kbd ms-2 "> /</ kbd >
266+ </ button >
267+ {{ end -}}
268+
267269 <!-- Color mode toggler -->
268270 {{ if and (eq site.Params.doks.colorMode "auto") site.Params.doks.colorModeToggler -}}
269271 < button id ="buttonColorMode " class ="btn btn-link mx-auto nav-link p-0 ms-lg-2 me-lg-1 " type ="button "
@@ -285,10 +287,21 @@ <h5 class="offcanvas-title" id="offcanvasNavMainLabel">{{ site.Title }}</h5>
285287 </ button >
286288 {{ end -}}
287289
288- <!-- GitHub link (other social icons moved to footer) -->
289- < a class ="nav-link social-link ms-lg-2 " href ="https://github.com/DefectDojo/django-DefectDojo " aria-label ="GitHub ">
290- < svg xmlns ="http://www.w3.org/2000/svg " class ="icon icon-tabler icon-tabler-brand-github " width ="24 " height ="24 " viewBox ="0 0 24 24 " stroke-width ="2 " stroke ="currentColor " fill ="none " stroke-linecap ="round " stroke-linejoin ="round "> < path stroke ="none " d ="M0 0h24v24H0z " fill ="none "> </ path > < path d ="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5 "> </ path > </ svg >
291- </ a >
290+ <!-- Social links — Tabler stroke icons -->
291+ < div class ="d-none d-lg-flex align-items-center header-social-links ms-lg-2 ">
292+ < a class ="nav-link social-link " href ="https://github.com/DefectDojo/django-DefectDojo " aria-label ="GitHub " rel ="noopener ">
293+ < svg xmlns ="http://www.w3.org/2000/svg " width ="20 " height ="20 " viewBox ="0 0 24 24 " stroke-width ="2 " stroke ="currentColor " fill ="none " stroke-linecap ="round " stroke-linejoin ="round "> < path stroke ="none " d ="M0 0h24v24H0z " fill ="none "> </ path > < path d ="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5 "> </ path > </ svg >
294+ </ a >
295+ < a class ="nav-link social-link " href ="https://www.linkedin.com/company/defectdojo/ " aria-label ="LinkedIn " rel ="noopener ">
296+ < svg xmlns ="http://www.w3.org/2000/svg " width ="20 " height ="20 " viewBox ="0 0 24 24 " stroke-width ="2 " stroke ="currentColor " fill ="none " stroke-linecap ="round " stroke-linejoin ="round "> < path stroke ="none " d ="M0 0h24v24H0z " fill ="none "> </ path > < path d ="M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z "/> < path d ="M8 11l0 5 "/> < path d ="M8 8l0 .01 "/> < path d ="M12 16l0 -5 "/> < path d ="M16 16v-3a2 2 0 0 0 -4 0 "/> </ svg >
297+ </ a >
298+ < a class ="nav-link social-link " href ="https://www.youtube.com/@defectdojo " aria-label ="YouTube " rel ="noopener ">
299+ < svg xmlns ="http://www.w3.org/2000/svg " width ="20 " height ="20 " viewBox ="0 0 24 24 " stroke-width ="2 " stroke ="currentColor " fill ="none " stroke-linecap ="round " stroke-linejoin ="round "> < path stroke ="none " d ="M0 0h24v24H0z " fill ="none "> </ path > < path d ="M2 8a4 4 0 0 1 4 -4h12a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-12a4 4 0 0 1 -4 -4v-8z "/> < path d ="M10 9l5 3l-5 3z "/> </ svg >
300+ </ a >
301+ < a class ="nav-link social-link " href ="https://x.com/defectdojo " aria-label ="X " rel ="noopener ">
302+ < svg xmlns ="http://www.w3.org/2000/svg " width ="20 " height ="20 " viewBox ="0 0 24 24 " stroke-width ="2 " stroke ="currentColor " fill ="none " stroke-linecap ="round " stroke-linejoin ="round "> < path stroke ="none " d ="M0 0h24v24H0z " fill ="none "> </ path > < path d ="M4 4l11.733 16h4.267l-11.733 -16z "> </ path > < path d ="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772 "> </ path > </ svg >
303+ </ a >
304+ </ div >
292305 </ div >
293306
294307 <!-- Navbar button mobile -->
@@ -299,7 +312,7 @@ <h5 class="offcanvas-title" id="offcanvasNavMainLabel">{{ site.Title }}</h5>
299312 }}</ a >
300313 {{ end -}}
301314 </ div >
302- < div class ="w-100 mt-3 ">
315+ < div class ="w-100 mt-1 ">
303316 < ul class ="navbar-nav flex-grow-1 ">
304317 {{ $current := index (split .RelPermalink "/") 1 }}
305318 {{ if eq $current "" }}{{ $current = "en" }}{{ end }}
0 commit comments