mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-10-31 01:53:30 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			6 lines
		
	
	
		
			277 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			277 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {{- $icon_resource := resources.Get (printf "jam/icons/%s.svg" .) -}}
 | |
| {{- $icon := $icon_resource.Content -}}
 | |
| {{- $icon = replaceRE `<svg` `<svg class="icon"` $icon -}}
 | |
| {{- $icon = replaceRE `</svg>` (printf `<title>%s icon</title></svg>` .) $icon -}}
 | |
| {{- $icon | safeHTML -}}
 |