| 
									
										
										
										
											2023-08-20 20:34:01 +01:00
										 |  |  | {{- $logoPath := .Site.Params.navbar.logo.path | default "images/logo.svg" -}} | 
					
						
							|  |  |  | {{- $logoLink := .Site.Params.navbar.logo.link | default .Site.Home.RelPermalink -}} | 
					
						
							|  |  |  | {{- $logoWidth := .Site.Params.navbar.logo.width | default "20" -}} | 
					
						
							|  |  |  | {{- $logoHeight := .Site.Params.navbar.logo.height | default "20" -}} | 
					
						
							|  |  |  | {{- $logoDarkPath := .Site.Params.navbar.logo.dark | default $logoPath -}} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-02-20 17:59:31 -05:00
										 |  |  | {{- $navWidth := "hx-max-w-[90rem]" -}} | 
					
						
							| 
									
										
										
										
											2023-09-20 23:36:00 +01:00
										 |  |  | {{- with .Site.Params.navbar.width -}} | 
					
						
							|  |  |  |   {{ if eq . "normal" -}} | 
					
						
							| 
									
										
										
										
											2024-02-20 17:59:31 -05:00
										 |  |  |     {{ $navWidth = "hx-max-w-screen-xl" -}} | 
					
						
							| 
									
										
										
										
											2023-09-20 23:36:00 +01:00
										 |  |  |   {{ else if eq . "full" -}} | 
					
						
							|  |  |  |     {{ $navWidth = "max-w-full" -}} | 
					
						
							|  |  |  |   {{ end -}} | 
					
						
							|  |  |  | {{- end -}} | 
					
						
							| 
									
										
										
										
											2023-08-20 20:34:01 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-02-20 17:59:31 -05:00
										 |  |  | <div class="nav-container hx-sticky hx-top-0 hx-z-20 hx-w-full hx-bg-transparent print:hx-hidden"> | 
					
						
							|  |  |  |   <div class="nav-container-blur hx-pointer-events-none hx-absolute hx-z-[-1] hx-h-full hx-w-full hx-bg-white dark:hx-bg-dark hx-shadow-[0_2px_4px_rgba(0,0,0,.02),0_1px_0_rgba(0,0,0,.06)] contrast-more:hx-shadow-[0_0_0_1px_#000] dark:hx-shadow-[0_-1px_0_rgba(255,255,255,.1)_inset] contrast-more:dark:hx-shadow-[0_0_0_1px_#fff]"></div> | 
					
						
							| 
									
										
										
										
											2023-07-25 23:27:01 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-02-20 17:59:31 -05:00
										 |  |  |   <nav class="hx-mx-auto hx-flex hx-items-center hx-justify-end hx-gap-2 hx-h-16 hx-px-6 {{ $navWidth }}"> | 
					
						
							|  |  |  |     <a class="hx-flex hx-items-center hover:hx-opacity-75 ltr:hx-mr-auto rtl:hx-ml-auto" href="{{ $logoLink }}"> | 
					
						
							| 
									
										
										
										
											2023-08-23 01:00:36 +01:00
										 |  |  |       {{- if (.Site.Params.navbar.displayLogo | default true) }} | 
					
						
							| 
									
										
										
										
											2024-02-20 17:59:31 -05:00
										 |  |  |         <img class="hx-block dark:hx-hidden" src="{{ $logoPath | relURL }}" alt="{{ .Site.Title }}" height="{{ $logoHeight }}" width="{{ $logoWidth }}" /> | 
					
						
							|  |  |  |         <img class="hx-hidden dark:hx-block" src="{{ $logoDarkPath | relURL }}" alt="{{ .Site.Title }}" height="{{ $logoHeight }}" width="{{ $logoWidth }}" /> | 
					
						
							| 
									
										
										
										
											2023-08-23 01:00:36 +01:00
										 |  |  |       {{- end }} | 
					
						
							|  |  |  |       {{- if (.Site.Params.navbar.displayTitle | default true) }} | 
					
						
							| 
									
										
										
										
											2024-02-20 17:59:31 -05:00
										 |  |  |         <span class="hx-mx-2 hx-font-extrabold hx-inline hx-select-none" title="{{ .Site.Title }}">{{- .Site.Title -}}</span> | 
					
						
							| 
									
										
										
										
											2023-08-23 01:00:36 +01:00
										 |  |  |       {{- end }} | 
					
						
							| 
									
										
										
										
											2023-07-25 23:27:01 +01:00
										 |  |  |     </a> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-04 01:11:31 +01:00
										 |  |  |     {{- $currentPage := . -}} | 
					
						
							|  |  |  |     {{- range .Site.Menus.main -}} | 
					
						
							| 
									
										
										
										
											2023-08-06 15:23:37 +01:00
										 |  |  |       {{- if eq .Params.type "search" -}} | 
					
						
							| 
									
										
										
										
											2023-08-14 21:56:26 +01:00
										 |  |  |         {{- partial "search.html" (dict "params" .Params) -}} | 
					
						
							| 
									
										
										
										
											2023-08-06 15:23:37 +01:00
										 |  |  |       {{- else -}} | 
					
						
							| 
									
										
										
										
											2023-11-10 12:45:44 -05:00
										 |  |  |         {{- $link := .URL -}} | 
					
						
							|  |  |  |         {{- $external := strings.HasPrefix $link "http" -}} | 
					
						
							|  |  |  |         {{- with .PageRef -}} | 
					
						
							|  |  |  |           {{- if hasPrefix . "/" -}} | 
					
						
							|  |  |  |             {{- $link = relLangURL (strings.TrimPrefix "/" .) -}} | 
					
						
							|  |  |  |           {{- end -}} | 
					
						
							|  |  |  |         {{- end -}} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-14 21:56:26 +01:00
										 |  |  |         {{/* Display icon menu item */}} | 
					
						
							| 
									
										
										
										
											2023-08-06 15:23:37 +01:00
										 |  |  |         {{- if .Params.icon -}} | 
					
						
							| 
									
										
										
										
											2024-01-08 19:25:54 +01:00
										 |  |  |           {{- $rel := cond (eq .Params.icon "mastodon") "noreferer me" "noreferer" }} | 
					
						
							| 
									
										
										
										
											2024-02-20 17:59:31 -05:00
										 |  |  |           <a class="hx-p-2 hx-text-current" {{ if $external }}target="_blank" rel="{{ $rel }}"{{ end }} href="{{ $link }}" title="{{ or (T .Identifier) .Name | safeHTML }}"> | 
					
						
							| 
									
										
										
										
											2023-08-14 21:56:26 +01:00
										 |  |  |             {{- partial "utils/icon.html" (dict "name" .Params.icon "attributes" "height=24") -}} | 
					
						
							| 
									
										
										
										
											2024-02-20 17:59:31 -05:00
										 |  |  |             <span class="hx-sr-only">{{ or (T .Identifier) .Name | safeHTML }}</span> | 
					
						
							| 
									
										
										
										
											2023-08-06 15:23:37 +01:00
										 |  |  |           </a> | 
					
						
							|  |  |  |         {{- else -}} | 
					
						
							| 
									
										
										
										
											2023-08-14 21:56:26 +01:00
										 |  |  |           {{- $active := or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .) -}} | 
					
						
							| 
									
										
										
										
											2024-02-20 17:59:31 -05:00
										 |  |  |           {{- $activeClass := cond $active "hx-font-medium" "hx-text-gray-600 hover:hx-text-gray-800 dark:hx-text-gray-400 dark:hover:hx-text-gray-200" -}} | 
					
						
							| 
									
										
										
										
											2023-08-06 15:23:37 +01:00
										 |  |  |           <a | 
					
						
							| 
									
										
										
										
											2023-08-23 01:00:36 +01:00
										 |  |  |             title="{{ or (T .Identifier) .Name | safeHTML }}" | 
					
						
							| 
									
										
										
										
											2023-11-10 12:45:44 -05:00
										 |  |  |             href="{{ $link }}" | 
					
						
							| 
									
										
										
										
											2023-08-06 15:23:37 +01:00
										 |  |  |             {{ if $external }}target="_blank" rel="noreferer"{{ end }} | 
					
						
							| 
									
										
										
										
											2024-02-20 17:59:31 -05:00
										 |  |  |             class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block {{ $activeClass }}" | 
					
						
							| 
									
										
										
										
											2023-08-06 15:23:37 +01:00
										 |  |  |           > | 
					
						
							| 
									
										
										
										
											2024-02-20 17:59:31 -05:00
										 |  |  |             <span class="hx-text-center">{{ or (T .Identifier) .Name | safeHTML }}</span> | 
					
						
							| 
									
										
										
										
											2023-08-06 15:23:37 +01:00
										 |  |  |           </a> | 
					
						
							|  |  |  |         {{- end -}} | 
					
						
							| 
									
										
										
										
											2023-08-14 21:56:26 +01:00
										 |  |  |       {{- end -}} | 
					
						
							|  |  |  |     {{- end -}} | 
					
						
							| 
									
										
										
										
											2023-08-06 15:23:37 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-02-20 17:59:31 -05:00
										 |  |  |     <button type="button" aria-label="Menu" class="hamburger-menu -hx-mr-2 hx-rounded hx-p-2 active:hx-bg-gray-400/20 md:hx-hidden"> | 
					
						
							| 
									
										
										
										
											2023-08-15 21:55:14 +01:00
										 |  |  |       {{- partial "utils/icon.html" (dict "name" "hamburger-menu" "attributes" "height=24") -}} | 
					
						
							| 
									
										
										
										
											2023-08-06 15:23:37 +01:00
										 |  |  |     </button> | 
					
						
							| 
									
										
										
										
											2023-07-25 23:27:01 +01:00
										 |  |  |   </nav> | 
					
						
							|  |  |  | </div> |