| 
									
										
										
										
											2023-07-19 22:11:34 +01:00
										 |  |  |  | <head> | 
					
						
							|  |  |  |  |   <meta charset="utf-8" /> | 
					
						
							| 
									
										
										
										
											2023-08-09 22:57:43 +01:00
										 |  |  |  |   <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | 
					
						
							| 
									
										
										
										
											2023-08-12 19:53:14 +01:00
										 |  |  |  |   {{ if hugo.IsProduction -}} | 
					
						
							|  |  |  |  |     <meta name="robots" content="index, follow" /> | 
					
						
							|  |  |  |  |   {{ else -}} | 
					
						
							|  |  |  |  |     <meta name="robots" content="noindex, nofollow" /> | 
					
						
							|  |  |  |  |   {{ end -}} | 
					
						
							| 
									
										
										
										
											2023-08-09 22:57:43 +01:00
										 |  |  |  |   {{ partialCached "favicons.html" . }} | 
					
						
							| 
									
										
										
										
											2023-07-19 22:11:34 +01:00
										 |  |  |  |   <title> | 
					
						
							| 
									
										
										
										
											2023-08-09 22:57:43 +01:00
										 |  |  |  |     {{- if .IsHome -}} | 
					
						
							|  |  |  |  |       {{ .Site.Title -}} | 
					
						
							|  |  |  |  |     {{ else -}} | 
					
						
							|  |  |  |  |       {{ with .Title }}{{ . }} – {{ end -}} | 
					
						
							|  |  |  |  |       {{ .Site.Title -}} | 
					
						
							|  |  |  |  |     {{ end -}} | 
					
						
							| 
									
										
										
										
											2023-07-19 22:11:34 +01:00
										 |  |  |  |   </title> | 
					
						
							| 
									
										
										
										
											2023-08-09 22:57:43 +01:00
										 |  |  |  |   <meta name="description" content="{{ partial "utils/page-description.html" . }}" /> | 
					
						
							| 
									
										
										
										
											2024-02-20 17:59:31 -05:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-02-02 00:52:41 +02:00
										 |  |  |  |   {{ with .Params.canonical }} | 
					
						
							|  |  |  |  |     <link rel="canonical" href="{{ . }}" itemprop="url" /> | 
					
						
							|  |  |  |  |   {{ else }} | 
					
						
							|  |  |  |  |     <link rel="canonical" href="{{ .Permalink }}" itemprop="url" /> | 
					
						
							|  |  |  |  |   {{ end }} | 
					
						
							| 
									
										
										
										
											2023-09-21 08:03:35 +01:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-09 22:57:43 +01:00
										 |  |  |  |   {{ partial "opengraph.html" . }} | 
					
						
							| 
									
										
										
										
											2023-08-12 19:53:14 +01:00
										 |  |  |  |   {{ template "_internal/schema.html" . -}} | 
					
						
							| 
									
										
										
										
											2023-08-20 19:25:12 +01:00
										 |  |  |  |   {{ template "_internal/twitter_cards.html" . -}} | 
					
						
							| 
									
										
										
										
											2023-09-21 08:03:35 +01:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-20 19:25:12 +01:00
										 |  |  |  |   {{ partialCached "head-css.html" . }} | 
					
						
							| 
									
										
										
										
											2023-09-21 08:03:35 +01:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |   <!-- Google Analytics --> | 
					
						
							| 
									
										
										
										
											2023-10-30 19:48:48 -04:00
										 |  |  |  |   {{- if and (eq hugo.Environment "production") (or .Site.GoogleAnalytics .Site.Config.Services.GoogleAnalytics.ID) }} | 
					
						
							| 
									
										
										
										
											2023-09-21 08:03:35 +01:00
										 |  |  |  |     <link rel="preconnect" href="https://www.googletagmanager.com" crossorigin /> | 
					
						
							|  |  |  |  |     {{ partial "google-analytics.html" . }} | 
					
						
							|  |  |  |  |   {{- end }} | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-30 21:50:41 +01:00
										 |  |  |  |   <script> | 
					
						
							|  |  |  |  |     /* Initialize light/dark mode */ | 
					
						
							| 
									
										
										
										
											2023-10-21 17:18:04 -04:00
										 |  |  |  |     const defaultTheme = '{{ site.Params.theme.default | default `system`}}'; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     const setDarkTheme = () => { | 
					
						
							| 
									
										
										
										
											2023-07-30 21:50:41 +01:00
										 |  |  |  |       document.documentElement.classList.add("dark"); | 
					
						
							| 
									
										
										
										
											2023-09-13 19:01:38 -04:00
										 |  |  |  |       document.documentElement.style.colorScheme = "dark"; | 
					
						
							| 
									
										
										
										
											2023-10-21 17:18:04 -04:00
										 |  |  |  |     } | 
					
						
							|  |  |  |  |     const setLightTheme = () => { | 
					
						
							| 
									
										
										
										
											2023-07-30 21:50:41 +01:00
										 |  |  |  |       document.documentElement.classList.remove("dark"); | 
					
						
							| 
									
										
										
										
											2023-09-13 19:01:38 -04:00
										 |  |  |  |       document.documentElement.style.colorScheme = "light"; | 
					
						
							| 
									
										
										
										
											2023-07-30 21:50:41 +01:00
										 |  |  |  |     } | 
					
						
							| 
									
										
										
										
											2023-10-21 17:18:04 -04:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |     if ("color-theme" in localStorage) { | 
					
						
							|  |  |  |  |       localStorage.getItem("color-theme") === "dark" ? setDarkTheme() : setLightTheme(); | 
					
						
							|  |  |  |  |     } else { | 
					
						
							|  |  |  |  |       defaultTheme === "dark" ? setDarkTheme() : setLightTheme(); | 
					
						
							|  |  |  |  |       if (defaultTheme === "system") { | 
					
						
							|  |  |  |  |         window.matchMedia("(prefers-color-scheme: dark)").matches ? setDarkTheme() : setLightTheme(); | 
					
						
							|  |  |  |  |       } | 
					
						
							|  |  |  |  |     } | 
					
						
							| 
									
										
										
										
											2023-07-30 21:50:41 +01:00
										 |  |  |  |   </script> | 
					
						
							| 
									
										
										
										
											2023-08-09 22:57:43 +01:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |   {{ partial "custom/head-end.html" . }} | 
					
						
							| 
									
										
										
										
											2023-07-19 22:11:34 +01:00
										 |  |  |  | </head> |