mirror of
				https://github.com/imfing/hextra.git
				synced 2025-11-04 01:24:54 -05:00 
			
		
		
		
	
		
			
	
	
		
			10 lines
		
	
	
		
			379 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
		
		
			
		
	
	
			10 lines
		
	
	
		
			379 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| 
								 | 
							
								{{- if not (in (slice "note" "tip" "important" "warning" "caution") .AlertType) -}}
							 | 
						||
| 
								 | 
							
								  {{- warnf "Alert type %s is not supported" .AlertType -}}
							 | 
						||
| 
								 | 
							
								{{- end -}}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								{{- $content := .Text -}}
							 | 
						||
| 
								 | 
							
								{{- $alertType := .AlertType -}}
							 | 
						||
| 
								 | 
							
								{{- $alertTitle := .AlertTitle -}}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								{{- partial "components/github-style-alert.html" (dict "content" $content "alertType" $alertType "alertTitle" $alertTitle) -}}
							 |