| 
									
										
										
										
											2023-08-07 23:48:07 +01:00
										 |  |  | {{- $enableFooterSwitches := .Scratch.Get "enableFooterSwitches" | default false -}} | 
					
						
							| 
									
										
										
										
											2023-10-21 17:18:04 -04:00
										 |  |  | {{- $displayThemeToggle := site.Params.theme.displayToggle | default true -}} | 
					
						
							| 
									
										
										
										
											2024-12-25 21:25:47 +00:00
										 |  |  | {{- $footerSwitchesVisible := and $enableFooterSwitches (or hugo.IsMultilingual $displayThemeToggle) -}} | 
					
						
							|  |  |  | {{- $copyrightSectionVisible := or (.Site.Params.footer.displayPoweredBy | default true) .Site.Params.footer.displayCopyright -}} | 
					
						
							| 
									
										
										
										
											2023-08-07 23:48:07 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-17 21:36:25 +00:00
										 |  |  | {{- $copyright := (T "copyright") | default "© 2024 Hextra." -}} | 
					
						
							| 
									
										
										
										
											2023-10-26 04:02:47 -04:00
										 |  |  | {{- $poweredBy := (T "poweredBy") | default "Powered by Hextra" -}} | 
					
						
							| 
									
										
										
										
											2023-08-27 17:32:44 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-21 17:18:04 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-29 12:51:42 +00:00
										 |  |  | <footer class="hextra-footer hx:bg-gray-100 hx:pb-[env(safe-area-inset-bottom)] hx:dark:bg-neutral-900 hx:print:bg-transparent"> | 
					
						
							| 
									
										
										
										
											2024-12-25 21:25:47 +00:00
										 |  |  |   {{- if $footerSwitchesVisible -}} | 
					
						
							| 
									
										
										
										
											2025-05-23 00:57:12 +01:00
										 |  |  |     <div class="hx:mx-auto hx:flex hx:gap-2 hx:py-2 hx:px-4 hextra-max-footer-width"> | 
					
						
							| 
									
										
										
										
											2023-08-14 21:56:26 +01:00
										 |  |  |       {{- partial "language-switch.html" (dict "context" .) -}} | 
					
						
							| 
									
										
										
										
											2023-10-21 17:18:04 -04:00
										 |  |  |       {{- with $displayThemeToggle }}{{ partial "theme-toggle.html" }}{{ end -}} | 
					
						
							| 
									
										
										
										
											2023-08-13 22:18:20 +01:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2024-05-29 10:11:25 +02:00
										 |  |  |     {{- if or hugo.IsMultilingual $displayThemeToggle -}} | 
					
						
							| 
									
										
										
										
											2025-03-29 12:51:42 +00:00
										 |  |  |       <hr class="hx:border-gray-200 hx:dark:border-neutral-800" /> | 
					
						
							| 
									
										
										
										
											2023-10-21 17:18:04 -04:00
										 |  |  |     {{- end -}} | 
					
						
							|  |  |  |   {{- end -}} | 
					
						
							| 
									
										
										
										
											2025-05-23 00:57:12 +01:00
										 |  |  |   <div class="hextra-custom-footer hextra-max-footer-width hx:pl-[max(env(safe-area-inset-left),1.5rem)] hx:pr-[max(env(safe-area-inset-right),1.5rem)] hx:text-gray-600 hx:dark:text-gray-400"> | 
					
						
							|  |  |  |     {{- partial "custom/footer.html" (dict "context" . "switchesVisible" $footerSwitchesVisible "copyrightVisible" $copyrightSectionVisible) -}} | 
					
						
							|  |  |  |   </div> | 
					
						
							|  |  |  |   {{- if $copyrightSectionVisible -}} | 
					
						
							| 
									
										
										
										
											2024-12-25 21:25:47 +00:00
										 |  |  |     <div | 
					
						
							| 
									
										
										
										
											2025-05-23 00:57:12 +01:00
										 |  |  |       class="hextra-max-footer-width hx:mx-auto hx:flex hx:justify-center hx:py-12 hx:pl-[max(env(safe-area-inset-left),1.5rem)] hx:pr-[max(env(safe-area-inset-right),1.5rem)] hx:text-gray-600 hx:dark:text-gray-400 hx:md:justify-start" | 
					
						
							| 
									
										
										
										
											2024-12-25 21:25:47 +00:00
										 |  |  |     > | 
					
						
							| 
									
										
										
										
											2025-05-23 00:57:12 +01:00
										 |  |  |       <div class="hx:flex hx:w-full hx:flex-col hx:items-center hx:sm:items-start"> | 
					
						
							|  |  |  |         {{- if (.Site.Params.footer.displayPoweredBy | default true) }}<div class="hx:font-semibold">{{ template "theme-credit" $poweredBy }}</div>{{- end -}} | 
					
						
							|  |  |  |         {{- if .Site.Params.footer.displayCopyright }}<div class="hx:mt-6 hx:text-xs">{{ $copyright | markdownify }}</div>{{- end -}} | 
					
						
							| 
									
										
										
										
											2024-12-25 21:25:47 +00:00
										 |  |  |       </div> | 
					
						
							| 
									
										
										
										
											2025-05-23 00:57:12 +01:00
										 |  |  |     </div> | 
					
						
							|  |  |  |   {{- end -}} | 
					
						
							| 
									
										
										
										
											2023-07-27 00:05:47 +01:00
										 |  |  | </footer> | 
					
						
							| 
									
										
										
										
											2023-08-14 21:56:26 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | {{- define "theme-credit" -}} | 
					
						
							| 
									
										
										
										
											2025-03-29 12:51:42 +00:00
										 |  |  |   <a class="hx:flex hx:text-sm hx:items-center hx:gap-1 hx:text-current" target="_blank" rel="noopener noreferrer" title="Hextra GitHub Homepage" href="https://github.com/imfing/hextra"> | 
					
						
							| 
									
										
										
										
											2023-11-16 21:03:40 -05:00
										 |  |  |     <span> | 
					
						
							|  |  |  |       {{- . | markdownify -}} | 
					
						
							|  |  |  |       {{- if strings.Contains . "Hextra" -}} | 
					
						
							| 
									
										
										
										
											2025-03-29 12:51:42 +00:00
										 |  |  |         {{- partial "utils/icon.html" (dict "name" "hextra" "attributes" `height=1em class="hx:inline-block hx:ltr:ml-1 hx:rtl:mr-1 hx:align-[-2.5px]"`) -}} | 
					
						
							| 
									
										
										
										
											2023-11-16 21:03:40 -05:00
										 |  |  |       {{- end -}} | 
					
						
							| 
									
										
										
										
											2023-08-23 01:00:36 +01:00
										 |  |  |     </span> | 
					
						
							| 
									
										
										
										
											2023-08-14 21:56:26 +01:00
										 |  |  |   </a> | 
					
						
							|  |  |  | {{- end -}} |