| 
									
										
										
										
											2023-08-13 22:18:20 +01:00
										 |  |  | {{- $class := .Attributes.class | default "" -}} | 
					
						
							|  |  |  | {{- $filename := .Attributes.filename | default "" -}} | 
					
						
							| 
									
										
										
										
											2024-12-28 19:41:23 +07:00
										 |  |  | {{- $base_url := .Attributes.base_url | default "" -}} | 
					
						
							| 
									
										
										
										
											2023-08-13 22:18:20 +01:00
										 |  |  | {{- $lang := .Attributes.lang | default .Type -}} | 
					
						
							| 
									
										
										
										
											2023-07-30 22:18:28 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-29 12:51:42 +00:00
										 |  |  | <div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"> | 
					
						
							| 
									
										
										
										
											2024-12-28 19:41:23 +07:00
										 |  |  |   {{- partial "components/codeblock" (dict "filename" $filename "lang" $lang "base_url" $base_url "content" .Inner "options" .Options) -}} | 
					
						
							| 
									
										
										
										
											2024-03-28 08:32:51 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-12-28 19:41:23 +07:00
										 |  |  |   {{- if or (eq site.Params.highlight.copy.enable nil) (site.Params.highlight.copy.enable) -}} | 
					
						
							|  |  |  |     {{- partialCached "components/codeblock-copy-button" (dict "filename" $filename) $filename -}} | 
					
						
							|  |  |  |   {{- end -}} | 
					
						
							| 
									
										
										
										
											2023-07-30 22:18:28 +01:00
										 |  |  | </div> |