| 
									
										
										
										
											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" /> | 
					
						
							| 
									
										
										
										
											2025-05-17 18:35:26 -03:00
										 |  |  |  |   {{- $noindex := .Params.noindex | default false -}} | 
					
						
							|  |  |  |  |   {{ if and (hugo.IsProduction) (not $noindex) -}} | 
					
						
							| 
									
										
										
										
											2023-08-12 19:53:14 +01:00
										 |  |  |  |     <meta name="robots" content="index, follow" /> | 
					
						
							|  |  |  |  |   {{ else -}} | 
					
						
							|  |  |  |  |     <meta name="robots" content="noindex, nofollow" /> | 
					
						
							|  |  |  |  |   {{ end -}} | 
					
						
							| 
									
										
										
										
											2024-11-03 16:53:18 +00: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 -}} | 
					
						
							| 
									
										
										
										
											2025-06-07 08:31:25 -05:00
										 |  |  |  |       {{ with .Title }}{{ . }} – {{ end -}} | 
					
						
							| 
									
										
										
										
											2023-08-09 22:57:43 +01:00
										 |  |  |  |       {{ .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-11-03 16:53:18 +00:00
										 |  |  |  |   {{- with .Params.canonical -}} | 
					
						
							| 
									
										
										
										
											2024-02-02 00:52:41 +02:00
										 |  |  |  |     <link rel="canonical" href="{{ . }}" itemprop="url" /> | 
					
						
							| 
									
										
										
										
											2024-11-03 16:53:18 +00:00
										 |  |  |  |   {{- else -}} | 
					
						
							| 
									
										
										
										
											2024-02-02 00:52:41 +02:00
										 |  |  |  |     <link rel="canonical" href="{{ .Permalink }}" itemprop="url" /> | 
					
						
							| 
									
										
										
										
											2024-11-03 16:53:18 +00:00
										 |  |  |  |   {{- end -}} | 
					
						
							| 
									
										
										
										
											2023-09-21 08:03:35 +01:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-11-03 16:53:18 +00:00
										 |  |  |  |   {{- partial "opengraph.html" . -}} | 
					
						
							| 
									
										
										
										
											2025-06-01 01:25:39 +02:00
										 |  |  |  |   {{- partial "schema.html" . -}} | 
					
						
							|  |  |  |  |   {{- partial "twitter_cards.html" . -}} | 
					
						
							| 
									
										
										
										
											2023-09-21 08:03:35 +01:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-05-23 00:57:12 +01:00
										 |  |  |  |   {{- $mainCss := resources.Get "css/compiled/main.css" -}} | 
					
						
							|  |  |  |  |   {{- $customCss := resources.Get "css/custom.css" -}} | 
					
						
							|  |  |  |  |   {{- $variablesCss := resources.Get "css/variables.css" | resources.ExecuteAsTemplate "css/variables.css" . -}} | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-05-31 19:58:09 +01:00
										 |  |  |  |   {{- /* Production build */ -}} | 
					
						
							|  |  |  |  |   {{- if hugo.IsProduction }} | 
					
						
							|  |  |  |  |     {{- $styles := slice $variablesCss $mainCss $customCss | resources.Concat "css/compiled/main.css" | minify | fingerprint }} | 
					
						
							|  |  |  |  |     <link rel="preload" href="{{ $styles.RelPermalink }}" as="style" integrity="{{ $styles.Data.Integrity }}" /> | 
					
						
							|  |  |  |  |     <link href="{{ $styles.RelPermalink }}" rel="stylesheet" integrity="{{ $styles.Data.Integrity }}" /> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |   {{- /* Theme development mode (non-production + theme environment) */ -}} | 
					
						
							|  |  |  |  |   {{- else if eq hugo.Environment "theme" }} | 
					
						
							| 
									
										
										
										
											2025-05-31 00:56:32 +01:00
										 |  |  |  |     {{- $devStyles := resources.Get "css/styles.css" | postCSS (dict "inlineImports" true) }} | 
					
						
							|  |  |  |  |     <link href="{{ $devStyles.RelPermalink }}" rel="stylesheet" /> | 
					
						
							| 
									
										
										
										
											2025-05-31 19:58:09 +01:00
										 |  |  |  |     <link href="{{ $variablesCss.RelPermalink }}" rel="stylesheet" /> | 
					
						
							|  |  |  |  |     <link href="{{ $customCss.RelPermalink }}" rel="stylesheet" /> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |   {{- /* User local development */ -}} | 
					
						
							| 
									
										
										
										
											2025-05-23 00:57:12 +01:00
										 |  |  |  |   {{- else }} | 
					
						
							| 
									
										
										
										
											2025-05-31 19:58:09 +01:00
										 |  |  |  |     {{- $styles := resources.Get "css/compiled/main.css" -}} | 
					
						
							|  |  |  |  |     <link href="{{ $styles.RelPermalink }}" rel="stylesheet" /> | 
					
						
							|  |  |  |  |     <link href="{{ $variablesCss.RelPermalink }}" rel="stylesheet" /> | 
					
						
							|  |  |  |  |     <link href="{{ $customCss.RelPermalink }}" rel="stylesheet" /> | 
					
						
							| 
									
										
										
										
											2025-05-23 00:57:12 +01:00
										 |  |  |  |   {{- end }} | 
					
						
							| 
									
										
										
										
											2023-09-21 08:03:35 +01:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-25 13:01:10 +02:00
										 |  |  |  |   {{ partial "components/analytics/analytics.html" . }} | 
					
						
							| 
									
										
										
										
											2023-09-21 08:03:35 +01:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-09-11 21:29:18 +02:00
										 |  |  |  |   {{- $scriptsHead := slice -}} | 
					
						
							|  |  |  |  |   {{- range resources.Match "js/head/*.js" -}} | 
					
						
							|  |  |  |  |     {{ $scriptsHead = $scriptsHead | append (resources.ExecuteAsTemplate .Name $ .) }} | 
					
						
							|  |  |  |  |   {{- end -}} | 
					
						
							| 
									
										
										
										
											2025-08-21 01:33:24 +02:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-09-11 21:29:18 +02:00
										 |  |  |  |   {{- $scripts := $scriptsHead | resources.Concat "js/main-head.js" -}} | 
					
						
							| 
									
										
										
										
											2025-08-24 00:46:29 +02:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-09-11 21:29:18 +02:00
										 |  |  |  |   {{- if hugo.IsProduction -}} | 
					
						
							|  |  |  |  |   {{- $scripts = $scripts | minify | fingerprint -}} | 
					
						
							|  |  |  |  |   {{- end -}} | 
					
						
							|  |  |  |  |   <script src="{{ $scripts.RelPermalink }}" integrity="{{ $scripts.Data.Integrity }}"></script> | 
					
						
							| 
									
										
										
										
											2025-08-24 00:46:29 +02:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-13 15:14:46 +08:00
										 |  |  |  |   <!-- Math engine --> | 
					
						
							| 
									
										
										
										
											2025-03-30 21:20:50 +01:00
										 |  |  |  |   {{ $noop := .WordCount -}} | 
					
						
							| 
									
										
										
										
											2025-06-14 14:36:10 +01:00
										 |  |  |  |   {{- $engine := site.Params.math.engine | default "katex" -}} | 
					
						
							|  |  |  |  |   {{ if and (.Page.Store.Get "hasMath") (eq $engine "katex") -}} | 
					
						
							| 
									
										
										
										
											2025-08-13 15:14:46 +08:00
										 |  |  |  |     {{ partialCached "scripts/katex.html" . -}} | 
					
						
							| 
									
										
										
										
											2025-06-14 14:36:10 +01:00
										 |  |  |  |   {{ else if and (.Page.Store.Get "hasMath") (eq $engine "mathjax") -}} | 
					
						
							|  |  |  |  |     {{ partialCached "scripts/mathjax.html" . -}} | 
					
						
							| 
									
										
										
										
											2025-03-30 21:20:50 +01:00
										 |  |  |  |   {{ end -}} | 
					
						
							| 
									
										
										
										
											2025-03-30 19:05:35 +02:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-14 23:12:23 +08:00
										 |  |  |  |   {{ partial "utils/page-width-override.html" . }} | 
					
						
							| 
									
										
										
										
											2025-03-30 21:20:50 +01:00
										 |  |  |  |   {{ partial "custom/head-end.html" . -}} | 
					
						
							| 
									
										
										
										
											2023-07-19 22:11:34 +01:00
										 |  |  |  | </head> |