mirror of
				https://github.com/imfing/hextra.git
				synced 2025-10-30 04:50:14 -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
		
			
				
	
	
		
			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) -}}
 |