mirror of
				https://github.com/imfing/hextra.git
				synced 2025-11-04 07:04:52 -05:00 
			
		
		
		
	Compare commits
	
		
			3 Commits
		
	
	
		
			v0.11.0
			...
			a5a3a08dcf
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					a5a3a08dcf | ||
| 
						 | 
					368c20e935 | ||
| 
						 | 
					9e684fa313 | 
							
								
								
									
										10
									
								
								layouts/shortcodes/hextra/hero-section.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								layouts/shortcodes/hextra/hero-section.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
{{- $style := .Get "style" -}}
 | 
			
		||||
{{- $header := int (strings.TrimPrefix "h" (.Get "header" | default "h2")) -}}
 | 
			
		||||
{{- $size := cond (ge $header 4) "xl" (cond (eq $header 3) "2xl" "4xl") -}}
 | 
			
		||||
 | 
			
		||||
<h{{ $header }}
 | 
			
		||||
  class="not-prose hx-text-{{ $size }} hx-font-bold hx-leading-none hx-tracking-tighter md:hx-text-3xl hx-py-2 hx-bg-clip-text hx-text-transparent hx-bg-gradient-to-r hx-from-gray-900 hx-to-gray-600 dark:hx-from-gray-100 dark:hx-to-gray-400"
 | 
			
		||||
  {{ with $style }}style="{{ . | safeCSS }}"{{ end }}
 | 
			
		||||
>
 | 
			
		||||
  {{ .Inner | markdownify }}
 | 
			
		||||
</h{{ $header }}>
 | 
			
		||||
		Reference in New Issue
	
	Block a user