mirror of
				https://github.com/imfing/hextra.git
				synced 2025-11-03 19:14:53 -05:00 
			
		
		
		
	* feat: basic github style alerts support * feat: implement github style alert * chore: re-generate css * chore: add missing prettier config * docs: add alerts instructions to markdown * chore: revert "docs: add alerts instructions to markdown" This reverts commit3a70540e0b. * chore: redo "docs: add alerts instructions to markdown"" This reverts commit8399373747. * chore(build): bump hugo version
		
			
				
	
	
		
			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) -}}
 |