mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-10-30 17:53:28 -05:00 
			
		
		
		
	Introduced by 16f08dce7f. Since the aspect
ratio of the icon isn't square, it's too wide and collides with the text
next to it. Would be nice to follow #82 and switch to a better
maintained icon pack.
		
	
		
			
				
	
	
		
			7 lines
		
	
	
		
			357 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			357 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {{- $icon_resource := resources.Get (printf "jam/icons/%s.svg" .) -}}
 | |
| {{- $icon := $icon_resource.Content -}}
 | |
| {{- $icon = replaceRE `<svg` (printf `<svg class="icon icon-%s"` .) $icon -}}
 | |
| {{- $icon = replaceRE `</svg>` (printf `<title>%s icon</title></svg>` .) $icon -}}
 | |
| {{- $icon = replaceRE `(width|height)="[0-9]*"` "" $icon -}}
 | |
| {{- $icon | safeHTML -}}
 |