| 
									
										
										
										
											2023-08-07 23:48:07 +01:00
										 |  |  | {{ define "main" }} | 
					
						
							| 
									
										
										
										
											2023-10-28 10:56:58 -04:00
										 |  |  |   {{- $readMore := (T "readMore") | default "Read more →" -}} | 
					
						
							| 
									
										
										
										
											2025-05-23 00:57:12 +01:00
										 |  |  |   <div class="hx:mx-auto hx:flex hextra-max-page-width"> | 
					
						
							| 
									
										
										
										
											2023-08-24 22:29:53 +01:00
										 |  |  |     {{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }} | 
					
						
							| 
									
										
										
										
											2025-03-29 12:51:42 +00:00
										 |  |  |     <article class="hx:w-full hx:break-words hx:flex hx:min-h-[calc(100vh-var(--navbar-height))] hx:min-w-0 hx:justify-center hx:pb-8 hx:pr-[calc(env(safe-area-inset-right)-1.5rem)]"> | 
					
						
							|  |  |  |       <main class="hx:w-full hx:min-w-0 hx:max-w-6xl hx:px-6 hx:pt-4 hx:md:px-12"> | 
					
						
							| 
									
										
										
										
											2025-08-26 20:46:51 +01:00
										 |  |  |         {{ partial "breadcrumb.html" (dict "page" . "enable" false) }} | 
					
						
							| 
									
										
										
										
											2025-03-29 12:51:42 +00:00
										 |  |  |         <br class="hx:mt-1.5 hx:text-sm" /> | 
					
						
							|  |  |  |         {{ if .Title }}<h1 class="hx:text-center hx:mt-2 hx:text-4xl hx:font-bold hx:tracking-tight hx:text-slate-900 hx:dark:text-slate-100">{{ .Title }}</h1>{{ end }} | 
					
						
							| 
									
										
										
										
											2023-08-21 23:41:37 +01:00
										 |  |  |         <div class="content">{{ .Content }}</div> | 
					
						
							| 
									
										
										
										
											2024-04-02 09:52:26 +02:00
										 |  |  |         {{- $pages := partial "utils/sort-pages" (dict "page" . "by" site.Params.blog.list.sortBy "order" site.Params.blog.list.sortOrder) -}} | 
					
						
							| 
									
										
										
										
											2025-07-24 22:26:17 +01:00
										 |  |  |         {{- $pagerSize := site.Params.blog.list.pagerSize | default 10 -}} | 
					
						
							|  |  |  |         {{- $paginator := .Paginate $pages $pagerSize -}} | 
					
						
							|  |  |  |         {{- range $paginator.Pages }} | 
					
						
							| 
									
										
										
										
											2025-03-29 12:51:42 +00:00
										 |  |  |           <div class="hx:mb-10"> | 
					
						
							|  |  |  |             <h3><a style="color: inherit; text-decoration: none;" class="hx:block hx:font-semibold hx:mt-8 hx:text-2xl " href="{{ .RelPermalink }}">{{ .Title }}</a></h3> | 
					
						
							| 
									
										
										
										
											2025-06-13 23:09:05 +02:00
										 |  |  |             {{ if site.Params.blog.list.displayTags }} | 
					
						
							| 
									
										
										
										
											2025-08-11 17:36:37 +08:00
										 |  |  |               <div class="hx:text-sm hx:leading-7"> | 
					
						
							|  |  |  |                 {{ partial "tags.html" (dict "context" .) }} | 
					
						
							|  |  |  |               </div> | 
					
						
							| 
									
										
										
										
											2025-06-13 23:09:05 +02:00
										 |  |  |             {{ end }} | 
					
						
							| 
									
										
										
										
											2025-03-29 12:51:42 +00:00
										 |  |  |             <p class="hx:opacity-80 hx:mt-4 hx:leading-7">{{- partial "utils/page-description" . -}}</p> | 
					
						
							|  |  |  |             <p class="hx:opacity-80 hx:mt-1 hx:leading-7"> | 
					
						
							|  |  |  |               <a class="hx:text-[color:hsl(var(--primary-hue),100%,50%)] hx:underline hx:underline-offset-2 hx:decoration-from-font" href="{{ .RelPermalink }}"> | 
					
						
							| 
									
										
										
										
											2023-10-28 10:56:58 -04:00
										 |  |  |                 {{- $readMore -}} | 
					
						
							|  |  |  |               </a> | 
					
						
							| 
									
										
										
										
											2023-08-07 23:48:07 +01:00
										 |  |  |             </p> | 
					
						
							| 
									
										
										
										
											2025-03-29 12:51:42 +00:00
										 |  |  |             <p class="hx:opacity-50 hx:text-sm hx:mt-4 hx:leading-7">{{ partial "utils/format-date" .Date }}</p> | 
					
						
							| 
									
										
										
										
											2023-08-07 23:48:07 +01:00
										 |  |  |           </div> | 
					
						
							| 
									
										
										
										
											2024-04-02 09:52:26 +02:00
										 |  |  |         {{ end -}} | 
					
						
							| 
									
										
										
										
											2025-07-24 22:26:17 +01:00
										 |  |  |          | 
					
						
							|  |  |  |         {{- if gt $paginator.TotalPages 1 -}} | 
					
						
							|  |  |  |           {{ partial "components/blog-pager.html" $paginator }} | 
					
						
							|  |  |  |         {{- end -}} | 
					
						
							| 
									
										
										
										
											2023-08-07 23:48:07 +01:00
										 |  |  |       </main> | 
					
						
							|  |  |  |     </article> | 
					
						
							| 
									
										
										
										
											2025-03-29 12:51:42 +00:00
										 |  |  |     <div class="hx:max-xl:hidden hx:h-0 hx:w-64 hx:shrink-0"></div> | 
					
						
							| 
									
										
										
										
											2023-08-07 23:48:07 +01:00
										 |  |  |   </div> | 
					
						
							| 
									
										
										
										
											2024-09-14 15:28:30 +02:00
										 |  |  | {{- end -}} |