mirror of
				https://github.com/imfing/hextra.git
				synced 2025-10-30 23:00:13 -04:00 
			
		
		
		
	 a44de285b2
			
		
	
	a44de285b2
	
	
	
		
			
			* Adapted theme's layout to [Hugo v0.146.0](https://gohugo.io/templates/new-templatesystem-overview/) * Bumped minimal Hugo version to v0.146.0
		
			
				
	
	
		
			14 lines
		
	
	
		
			646 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			646 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {{- $class := .Attributes.class | default "" -}}
 | |
| {{- $filename := .Attributes.filename | default "" -}}
 | |
| {{- $base_url := .Attributes.base_url | default "" -}}
 | |
| {{- $lang := .Attributes.lang | default .Type -}}
 | |
| 
 | |
| 
 | |
| <div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code">
 | |
|   {{- partial "components/codeblock" (dict "filename" $filename "lang" $lang "base_url" $base_url "content" .Inner "options" .Options) -}}
 | |
| 
 | |
|   {{- if or (eq site.Params.highlight.copy.enable nil) (site.Params.highlight.copy.enable) -}}
 | |
|     {{- partialCached "components/codeblock-copy-button" (dict "filename" $filename) $filename -}}
 | |
|   {{- end -}}
 | |
| </div>
 |